package com.sg.service.biz.component.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.exception.Assert;
import com.sg.common.exception.BizException;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.base.component.req.*;
import com.sg.dto.biz.component.common.*;
import com.sg.dto.biz.component.req.*;
import com.sg.dto.biz.component.res.*;
import com.sg.entity.OmsUnstructuredData;
import com.sg.entity.OmsUnstructuredDataFolder;
import com.sg.entity.OmsUnstructuredDataRelationship;
import com.sg.service.base.component.MCustomFields3Service;
import com.sg.service.base.component.MOmsUnstructuredDataFolderService;
import com.sg.service.base.component.MOmsUnstructuredDataRelationshipService;
import com.sg.service.base.component.MOmsUnstructuredDataService;
import com.sg.service.biz.component.*;
import com.sg.service.biz.component.nb.NbUnstructuredData;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class UnstructuredDataServiceImpl implements UnstructuredDataService {
    @Resource
    private RedisUtil redisUtil;

    /**
     * D2-批量查询文档列表(公共)[2670]
     * gen by moon at 8/10/2024, 9:27:36 PM
     */
    @Trace(operationName = "D2-批量查询文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryDocumentComRespDto batchQueryDocumentCom(BatchQueryDocumentComReqDto reqDto) {


        List<OmsUnstructuredData> listOmsUnstructuredData_1 = new ArrayList<>();
//步骤0: 2-7-01批量查询文档列表By文档id - batchQueryDocument
        List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
        BatchQueryDocumentReq batchQueryDocumentReq = new BatchQueryDocumentReq();
        if (reqDto != null) {
            batchQueryDocumentReq.setDocumentList(reqDto.getDocumentList());//list-field-assign//sourceId:82407_1
            batchQueryDocumentReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:527372_1
        }

        /*2-7-01批量查询文档列表By文档id[2669]   */
        Assert.isNull(batchQueryDocumentReq.getSpaceId(), "D2-批量查询文档列表(公共)-2-7-01批量查询文档列表By文档id-创建于空间ID不能为空", false);
        listOmsUnstructuredData = mOmsUnstructuredDataService.batchQueryDocument(batchQueryDocumentReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredData_1 = listOmsUnstructuredData;

        BatchQueryDocumentComRespDto retData = new BatchQueryDocumentComRespDto();
        retData.setDocumentList(listOmsUnstructuredData_1.stream().map(item -> {
            DocumentDto elm = BeanUtil.toBean(item, DocumentDto.class);
            elm.setFileRelativeAllPathAccess(CommonFunctionHelper.getFilePath(elm.getFileRelativePathAccess()));
            return elm;
        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:82410_1


        return retData;
    }

    /**
     * D2-7查询文档详情(公共)[3168]
     * gen by moon at 5/13/2024, 12:07:24 AM
     */
    @Trace(operationName = "D2-7查询文档详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDocumentDetailComRespDto queryDocumentDetailCom(QueryDocumentDetailComReqDto reqDto) {


        OmsUnstructuredData omsUnstructuredData_1 = null;
//步骤0: 2-7-01查询文档详情 - queryDocumentDetail
        OmsUnstructuredData omsUnstructuredData = null;
        QueryDocumentDetailReq queryDocumentDetailReq = new QueryDocumentDetailReq();
        queryDocumentDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1550831_1
        if (reqDto != null) {
            queryDocumentDetailReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:115223_1
        }

        /*2-7-01查询文档详情[3169]   */
        Assert.isNull(queryDocumentDetailReq.getSpaceId(), "D2-7查询文档详情(公共)-2-7-01查询文档详情-创建于空间ID不能为空", false);
        omsUnstructuredData = mOmsUnstructuredDataService.queryDocumentDetail(queryDocumentDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsUnstructuredData_1 = omsUnstructuredData;

        QueryDocumentDetailComRespDto retData = new QueryDocumentDetailComRespDto();
        if (omsUnstructuredData_1 != null) {
            retData.setUnstructuredDataId(omsUnstructuredData_1.getUnstructuredDataId());//SimpleFieldAssign//sourceId:115233_1
            retData.setUnstructuredDataNumber(omsUnstructuredData_1.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:1313538_1
            retData.setUnstructuredDataName(omsUnstructuredData_1.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1313537_1
            retData.setUnstructuredDataDesc(omsUnstructuredData_1.getUnstructuredDataDesc());//SimpleFieldAssign//sourceId:1313541_1
            retData.setFileSize(omsUnstructuredData_1.getFileSize());//SimpleFieldAssign//sourceId:1313539_1
            retData.setPostfix(omsUnstructuredData_1.getPostfix());//SimpleFieldAssign//sourceId:1313540_1
            retData.setFileRelativePathAccess(omsUnstructuredData_1.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:115234_1
            retData.setUnstructuredDataType(omsUnstructuredData_1.getUnstructuredDataType());//SimpleFieldAssign//sourceId:1313181_1
            retData.setIsUserUpload(omsUnstructuredData_1.getIsUserUpload());//SimpleFieldAssign//sourceId:1313182_1
            retData.setThemeContentTypeCode(omsUnstructuredData_1.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1313183_1
            retData.setThemeContentId(omsUnstructuredData_1.getThemeContentId());//SimpleFieldAssign//sourceId:1313184_1
        }


        return retData;
    }

    /**
     * D2-7批量查询文件夹(公共)[3398]
     * gen by moon at 11/17/2022, 5:33:45 PM
     */
    @Trace(operationName = "D2-7批量查询文件夹(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryDataFolderComRespDto batchQueryDataFolderCom(BatchQueryDataFolderComReqDto reqDto) {


        List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder_1 = new ArrayList<>();
//步骤0: 2-7-02批量查询文件夹 - batchQueryDataFolder
        List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder = new ArrayList<>();
        BatchQueryDataFolderReq batchQueryDataFolderReq = new BatchQueryDataFolderReq();
        if (reqDto != null) {
            batchQueryDataFolderReq.setDataFolderList(reqDto.getDataFolderList());//list-field-assign//sourceId:135648_1
            batchQueryDataFolderReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:135650_1
        }

        /*2-7-02批量查询文件夹[3397]   */

        listOmsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.batchQueryDataFolder(batchQueryDataFolderReq);


        listOmsUnstructuredDataFolder_1 = listOmsUnstructuredDataFolder;

        BatchQueryDataFolderComRespDto retData = new BatchQueryDataFolderComRespDto();
        retData.setDataFolderList(listOmsUnstructuredDataFolder_1.stream().map(item -> item.getUnstructuredDataFolderId())
                .collect(Collectors.toList()));/*list-to-strings*///sourceId:135655_1


        return retData;
    }

    /**
     * D2-7批量修改文件夹(公共)[3396]
     * gen by moon at 11/17/2022, 5:33:46 PM
     */
    @Trace(operationName = "D2-7批量修改文件夹(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchUpdateDataFolderComRespDto batchUpdateDataFolderCom(BatchUpdateDataFolderComReqDto reqDto) {


        //步骤0: 2-7-02批量修改文件夹 - batchUpdateDataFolder
        boolean bOOLEAN;
        List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder = new ArrayList<>();
        if (reqDto != null) {
            listOmsUnstructuredDataFolder = reqDto.getDataFolderList().stream().map(item -> BeanUtil.toBean(item, OmsUnstructuredDataFolder.class)).collect(Collectors.toList());//objList-to-objLists//sourceId:135627_1
        }

        /*2-7-02批量修改文件夹[3395]   */

        bOOLEAN = mOmsUnstructuredDataFolderService.batchUpdateDataFolder(listOmsUnstructuredDataFolder);


        BatchUpdateDataFolderComRespDto retData = new BatchUpdateDataFolderComRespDto();


        return retData;
    }

    /**
     * D2-7批量修改文档(公共)[3339]
     * gen by moon at 11/17/2022, 5:33:46 PM
     */
    @Trace(operationName = "D2-7批量修改文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchUpdateDocumentComRespDto batchUpdateDocumentCom(BatchUpdateDocumentComReqDto reqDto) {


        //步骤0: 2-7-01批量修改文档 - batchUpdateDocument
        boolean bOOLEAN;
        List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
        if (reqDto != null) {
            listOmsUnstructuredData = reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, OmsUnstructuredData.class)).collect(Collectors.toList());//objList-to-objLists//sourceId:131645_1
        }

        /*2-7-01批量修改文档[3338]   */

        bOOLEAN = mOmsUnstructuredDataService.batchUpdateDocument(listOmsUnstructuredData);


        BatchUpdateDocumentComRespDto retData = new BatchUpdateDocumentComRespDto();


        return retData;
    }

    /**
     * D2-7新增文档(公共)[3284]
     * gen by moon at 5/11/2024, 6:07:57 AM
     */
    @Trace(operationName = "D2-7新增文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddDocumentComRespDto addDocumentCom(AddDocumentComReqDto reqDto) {


        String string_1 = null;
        ImplementTenReceivingFieldRespDto receptionServiceRes_1 = null;
//virtualUsage D2-3查询文档类型配置答案详情(公共)  6937
        QueryDocumentTypeAnswerDetailComRespDto queryDocumentTypeAnswerDetailComRespDto = null;
        QueryDocumentTypeAnswerDetailComReqDto queryDocumentTypeAnswerDetailComReqDto = new QueryDocumentTypeAnswerDetailComReqDto();
        queryDocumentTypeAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1659043_1_6937
        queryDocumentTypeAnswerDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1659044_1_6937
        if (reqDto != null) {
            queryDocumentTypeAnswerDetailComReqDto.setResultAspObjId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659040_1_6937
            queryDocumentTypeAnswerDetailComReqDto.setConfItemCode(reqDto.getPostfix());//SimpleFieldAssign//sourceId:126107_1_6937
        }

        /*D2-3查询文档类型配置答案详情(公共)[2458]   */
        Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getResultAspObjId(), "D2-7新增文档(公共)-D2-3查询文档类型配置答案详情(公共)-开通对象ID不能为空", false);
        Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getConfItemCode(), "D2-7新增文档(公共)-D2-3查询文档类型配置答案详情(公共)-配置项标识不能为空", false);
        Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getResultAspObjType(), "D2-7新增文档(公共)-D2-3查询文档类型配置答案详情(公共)-开通对象类型编码不能为空", false);
        Assert.isNull(queryDocumentTypeAnswerDetailComReqDto.getSubjectLifeCycle(), "D2-7新增文档(公共)-D2-3查询文档类型配置答案详情(公共)-主体生命周期不能为空", false);
        queryDocumentTypeAnswerDetailComRespDto = confSchemeService.queryDocumentTypeAnswerDetailCom(queryDocumentTypeAnswerDetailComReqDto)/*vcase invoke isSameApp*/;


        if ((reqDto != null && reqDto.getUnstructuredDataFolderId() != null)) {
            //if(D2-7新增文档(公共).文件夹ID 值不等于空 )  65229

            String string = null;
            if (queryDocumentTypeAnswerDetailComRespDto != null) {
                OmsUnstructuredData omsUnstructuredData = new OmsUnstructuredData();
                if (queryDocumentTypeAnswerDetailComRespDto != null) {
                    omsUnstructuredData.setUnstructuredDataType(queryDocumentTypeAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:126095_1_65231
                    omsUnstructuredData.setUnstructuredDataDetailType(queryDocumentTypeAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:126096_1_65231
                    omsUnstructuredData.setIsSupportPreview(queryDocumentTypeAnswerDetailComRespDto.getExtensionField2());//SimpleFieldAssign//sourceId:126097_1_65231
                }
                if (reqDto != null) {
                    omsUnstructuredData.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:126100_1_65231
                    omsUnstructuredData.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:126101_1_65231
                    omsUnstructuredData.setFileSize(reqDto.getFileSize());//SimpleFieldAssign//sourceId:126102_1_65231
                    omsUnstructuredData.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:126103_1_65231
                    omsUnstructuredData.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:126099_1_65231
                    omsUnstructuredData.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1658965_1_65231
                    omsUnstructuredData.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1658964_1_65231
                    omsUnstructuredData.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:126098_1_65231
                    omsUnstructuredData.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658966_1_65231
                }

                /*2-7-01新增文档[2671]   */
                Assert.isNull(omsUnstructuredData.getUnstructuredDataType(), "D2-7新增文档(公共)-2-7-01新增文档-文档类型不能为空", false);
                Assert.isNull(omsUnstructuredData.getUnstructuredDataDetailType(), "D2-7新增文档(公共)-2-7-01新增文档-文档明细类型不能为空", false);
                Assert.isNull(omsUnstructuredData.getIsSupportPreview(), "D2-7新增文档(公共)-2-7-01新增文档-是否支持预览不能为空", false);
                Assert.isNull(omsUnstructuredData.getFileRelativePathAccess(), "D2-7新增文档(公共)-2-7-01新增文档-文件相对路径地址不能为空", false);
                Assert.isNull(omsUnstructuredData.getPostfix(), "D2-7新增文档(公共)-2-7-01新增文档-文档后缀不能为空", false);
                Assert.isNull(omsUnstructuredData.getFileSize(), "D2-7新增文档(公共)-2-7-01新增文档-文件大小不能为空", false);
                Assert.isNull(omsUnstructuredData.getUnstructuredDataName(), "D2-7新增文档(公共)-2-7-01新增文档-文档名称不能为空", false);
                Assert.isNull(omsUnstructuredData.getUnstructuredDataFolderId(), "D2-7新增文档(公共)-2-7-01新增文档-文件夹ID不能为空", false);
                Assert.isNull(omsUnstructuredData.getIsUserUpload(), "D2-7新增文档(公共)-2-7-01新增文档-是否来自个人网盘文件不能为空", false);
                Assert.isNull(omsUnstructuredData.getSpaceId(), "D2-7新增文档(公共)-2-7-01新增文档-创建于空间ID不能为空", false);
                string = mOmsUnstructuredDataService.addDocument(omsUnstructuredData)/*vcase invoke 本地 method 方法调用;*/;


                string_1 = string;
            }
//ModelCode: receptionService
            ImplementTenReceivingFieldRespDto receptionServiceRes = null;
            ImplementTenReceivingFieldReqDto receptionServiceReq = new ImplementTenReceivingFieldReqDto();
            if (reqDto != null) {
                receptionServiceReq.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1658859_1_65240
            }

            /*M2-接收文件夹 ID[8782]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq.getUnstructuredDataFolderId(), "D2-7新增文档(公共)-M2-接收文件夹 ID-文件夹ID不能为空", false);
            receptionServiceRes = nbUnstructuredData.implementTenReceivingField(receptionServiceReq);


            receptionServiceRes_1 = receptionServiceRes;
        } else if ((reqDto != null && reqDto.getUnstructuredDataFolderId() == null)) {
            //elseif(D2-7新增文档(公共).文件夹ID 值等于空 )  65230

            OmsUnstructuredDataFolder omsUnstructuredDataFolder = null;
            QueryDataFolderDetailReq queryDataFolderDetailReq = new QueryDataFolderDetailReq();
            queryDataFolderDetailReq.setIsRootFolder("TRUE");//sourceId:126080_1_65232
            if (reqDto != null) {
                queryDataFolderDetailReq.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:126079_1_65232
                queryDataFolderDetailReq.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659423_1_65232
                queryDataFolderDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1658899_1_65232
                queryDataFolderDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:126083_1_65232
            }

            /*2-7-02查询文件夹详情[2842]   */
            Assert.isNull(queryDataFolderDetailReq.getFolderName(), "D2-7新增文档(公共)-2-7-02查询文件夹详情-文件夹名不能为空", false);
            Assert.isNull(queryDataFolderDetailReq.getIsRootFolder(), "D2-7新增文档(公共)-2-7-02查询文件夹详情-是否一级文件夹不能为空", false);
            Assert.isNull(queryDataFolderDetailReq.getIsPrivateNetDisk(), "D2-7新增文档(公共)-2-7-02查询文件夹详情-是否自主网盘不能为空", false);
            Assert.isNull(queryDataFolderDetailReq.getOriginalRoleMemberId(), "D2-7新增文档(公共)-2-7-02查询文件夹详情-归属身份人员ID不能为空", false);
            Assert.isNull(queryDataFolderDetailReq.getSpaceId(), "D2-7新增文档(公共)-2-7-02查询文件夹详情-创建于空间ID不能为空", false);
            omsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderDetail(queryDataFolderDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((omsUnstructuredDataFolder == null)) {
                //if(2-7-02查询文件夹详情.出参 值等于空 )  65233

                String string_2 = null;
                OmsUnstructuredDataFolder omsUnstructuredDataFolder_2 = new OmsUnstructuredDataFolder();
                omsUnstructuredDataFolder_2.setIsRootFolder("TRUE");//sourceId:126092_1_65235
                omsUnstructuredDataFolder_2.setIsLastFolder("FALSE");//sourceId:126093_1_65235
                omsUnstructuredDataFolder_2.setSourceIdentityType("OMS_FRAMEWORK_SPACE_MEMBER");//sourceId:1658916_1_65235
                if (reqDto != null) {
                    omsUnstructuredDataFolder_2.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:126090_1_65235
                    omsUnstructuredDataFolder_2.setFileSize(reqDto.getFileSize());//SimpleFieldAssign//sourceId:1658908_1_65235
                    omsUnstructuredDataFolder_2.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659425_1_65235
                    omsUnstructuredDataFolder_2.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1658913_1_65235
                    omsUnstructuredDataFolder_2.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1658914_1_65235
                    omsUnstructuredDataFolder_2.setMemberId(reqDto.getMemberId());//SimpleFieldAssign//sourceId:1658915_1_65235
                    omsUnstructuredDataFolder_2.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659002_1_65235
                }

                /*2-7-02新增文件夹[2839]   */
                Assert.isNull(omsUnstructuredDataFolder_2.getFolderName(), "D2-7新增文档(公共)-2-7-02新增文件夹-文件夹名不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getIsRootFolder(), "D2-7新增文档(公共)-2-7-02新增文件夹-是否一级文件夹不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getIsLastFolder(), "D2-7新增文档(公共)-2-7-02新增文件夹-是否末级文件夹 不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getFileSize(), "D2-7新增文档(公共)-2-7-02新增文件夹-文件夹下文件大小 不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getIsPrivateNetDisk(), "D2-7新增文档(公共)-2-7-02新增文件夹-是否自主网盘不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getUserId(), "D2-7新增文档(公共)-2-7-02新增文件夹-归属个人账号不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getOriginalRoleMemberId(), "D2-7新增文档(公共)-2-7-02新增文件夹-归属身份人员ID不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getMemberId(), "D2-7新增文档(公共)-2-7-02新增文件夹-归属空间成员ID不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getSourceIdentityType(), "D2-7新增文档(公共)-2-7-02新增文件夹-来源身份类型不能为空", false);
                Assert.isNull(omsUnstructuredDataFolder_2.getSpaceId(), "D2-7新增文档(公共)-2-7-02新增文件夹-创建于空间ID不能为空", false);
                string_2 = mOmsUnstructuredDataFolderService.addDataFolder(omsUnstructuredDataFolder_2)/*vcase invoke 本地 method 方法调用;*/;


                String string_4 = null;
                if (queryDocumentTypeAnswerDetailComRespDto != null && string_2 != null) {
                    OmsUnstructuredData omsUnstructuredData_1 = new OmsUnstructuredData();
                    if (queryDocumentTypeAnswerDetailComRespDto != null) {
                        omsUnstructuredData_1.setUnstructuredDataType(queryDocumentTypeAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:126095_1_65236
                        omsUnstructuredData_1.setUnstructuredDataDetailType(queryDocumentTypeAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:126096_1_65236
                        omsUnstructuredData_1.setIsSupportPreview(queryDocumentTypeAnswerDetailComRespDto.getExtensionField2());//SimpleFieldAssign//sourceId:126097_1_65236
                    }
                    if (reqDto != null) {
                        omsUnstructuredData_1.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:126100_1_65236
                        omsUnstructuredData_1.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:126101_1_65236
                        omsUnstructuredData_1.setFileSize(reqDto.getFileSize());//SimpleFieldAssign//sourceId:126102_1_65236
                        omsUnstructuredData_1.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:126103_1_65236
                        omsUnstructuredData_1.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1658965_1_65236
                        omsUnstructuredData_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1658964_1_65236
                        omsUnstructuredData_1.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:126098_1_65236
                        omsUnstructuredData_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658966_1_65236
                    }
                    if (string_2 != null) {
                        omsUnstructuredData_1.setUnstructuredDataFolderId(string_2);//SimpleFieldAssign//sourceId:126099_1_65236
                    }

                    /*2-7-01新增文档[2671]   */
                    Assert.isNull(omsUnstructuredData_1.getUnstructuredDataType(), "D2-7新增文档(公共)-2-7-01新增文档-文档类型不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getUnstructuredDataDetailType(), "D2-7新增文档(公共)-2-7-01新增文档-文档明细类型不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getIsSupportPreview(), "D2-7新增文档(公共)-2-7-01新增文档-是否支持预览不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getFileRelativePathAccess(), "D2-7新增文档(公共)-2-7-01新增文档-文件相对路径地址不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getPostfix(), "D2-7新增文档(公共)-2-7-01新增文档-文档后缀不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getFileSize(), "D2-7新增文档(公共)-2-7-01新增文档-文件大小不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getUnstructuredDataName(), "D2-7新增文档(公共)-2-7-01新增文档-文档名称不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getUnstructuredDataFolderId(), "D2-7新增文档(公共)-2-7-01新增文档-文件夹ID不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getIsUserUpload(), "D2-7新增文档(公共)-2-7-01新增文档-是否来自个人网盘文件不能为空", false);
                    Assert.isNull(omsUnstructuredData_1.getSpaceId(), "D2-7新增文档(公共)-2-7-01新增文档-创建于空间ID不能为空", false);
                    string_4 = mOmsUnstructuredDataService.addDocument(omsUnstructuredData_1)/*vcase invoke 本地 method 方法调用;*/;


                    string_1 = string_4;
                }
//ModelCode: receptionService
                ImplementTenReceivingFieldRespDto receptionServiceRes_2 = null;
                if (string_2 != null) {
                    ImplementTenReceivingFieldReqDto receptionServiceReq_1 = new ImplementTenReceivingFieldReqDto();
                    if (string_2 != null) {
                        receptionServiceReq_1.setUnstructuredDataFolderId(string_2);//SimpleFieldAssign//sourceId:1658859_1_65237
                    }

                    /*M2-接收文件夹 ID[8782]  用于特殊方法接收上游入参。 */
                    Assert.isNull(receptionServiceReq_1.getUnstructuredDataFolderId(), "D2-7新增文档(公共)-M2-接收文件夹 ID-文件夹ID不能为空", false);
                    receptionServiceRes_2 = nbUnstructuredData.implementTenReceivingField(receptionServiceReq_1);


                    receptionServiceRes_1 = receptionServiceRes_2;
                }
            } else if ((omsUnstructuredDataFolder != null)) {
                //elseif(2-7-02查询文件夹详情09.出参 值不等于空 )  65234

                String string_5 = null;
                if (queryDocumentTypeAnswerDetailComRespDto != null && omsUnstructuredDataFolder != null) {
                    OmsUnstructuredData omsUnstructuredData_2 = new OmsUnstructuredData();
                    if (queryDocumentTypeAnswerDetailComRespDto != null) {
                        omsUnstructuredData_2.setUnstructuredDataType(queryDocumentTypeAnswerDetailComRespDto.getExtensionField1());//SimpleFieldAssign//sourceId:126095_1_65238
                        omsUnstructuredData_2.setUnstructuredDataDetailType(queryDocumentTypeAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:126096_1_65238
                        omsUnstructuredData_2.setIsSupportPreview(queryDocumentTypeAnswerDetailComRespDto.getExtensionField2());//SimpleFieldAssign//sourceId:126097_1_65238
                    }
                    if (reqDto != null) {
                        omsUnstructuredData_2.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:126100_1_65238
                        omsUnstructuredData_2.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:126101_1_65238
                        omsUnstructuredData_2.setFileSize(reqDto.getFileSize());//SimpleFieldAssign//sourceId:126102_1_65238
                        omsUnstructuredData_2.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:126103_1_65238
                        omsUnstructuredData_2.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1658965_1_65238
                        omsUnstructuredData_2.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1658964_1_65238
                        omsUnstructuredData_2.setIsUserUpload(reqDto.getIsUserUpload());//SimpleFieldAssign//sourceId:126098_1_65238
                        omsUnstructuredData_2.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658966_1_65238
                    }
                    if (omsUnstructuredDataFolder != null) {
                        omsUnstructuredData_2.setUnstructuredDataFolderId(omsUnstructuredDataFolder.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:126099_1_65238
                    }

                    /*2-7-01新增文档[2671]   */
                    Assert.isNull(omsUnstructuredData_2.getUnstructuredDataType(), "D2-7新增文档(公共)-2-7-01新增文档-文档类型不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getUnstructuredDataDetailType(), "D2-7新增文档(公共)-2-7-01新增文档-文档明细类型不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getIsSupportPreview(), "D2-7新增文档(公共)-2-7-01新增文档-是否支持预览不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getFileRelativePathAccess(), "D2-7新增文档(公共)-2-7-01新增文档-文件相对路径地址不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getPostfix(), "D2-7新增文档(公共)-2-7-01新增文档-文档后缀不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getFileSize(), "D2-7新增文档(公共)-2-7-01新增文档-文件大小不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getUnstructuredDataName(), "D2-7新增文档(公共)-2-7-01新增文档-文档名称不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getUnstructuredDataFolderId(), "D2-7新增文档(公共)-2-7-01新增文档-文件夹ID不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getIsUserUpload(), "D2-7新增文档(公共)-2-7-01新增文档-是否来自个人网盘文件不能为空", false);
                    Assert.isNull(omsUnstructuredData_2.getSpaceId(), "D2-7新增文档(公共)-2-7-01新增文档-创建于空间ID不能为空", false);
                    string_5 = mOmsUnstructuredDataService.addDocument(omsUnstructuredData_2)/*vcase invoke 本地 method 方法调用;*/;


                    string_1 = string_5;
                }
//ModelCode: receptionService
                ImplementTenReceivingFieldRespDto receptionServiceRes_3 = null;
                if (omsUnstructuredDataFolder != null) {
                    ImplementTenReceivingFieldReqDto receptionServiceReq_2 = new ImplementTenReceivingFieldReqDto();
                    if (omsUnstructuredDataFolder != null) {
                        receptionServiceReq_2.setUnstructuredDataFolderId(omsUnstructuredDataFolder.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1658859_1_65239
                    }

                    /*M2-接收文件夹 ID[8782]  用于特殊方法接收上游入参。 */
                    Assert.isNull(receptionServiceReq_2.getUnstructuredDataFolderId(), "D2-7新增文档(公共)-M2-接收文件夹 ID-文件夹ID不能为空", false);
                    receptionServiceRes_3 = nbUnstructuredData.implementTenReceivingField(receptionServiceReq_2);


                    receptionServiceRes_1 = receptionServiceRes_3;
                }
            }
        }
        AddDocumentComRespDto retData = new AddDocumentComRespDto();
        if (string_1 != null) {
            retData.setUnstructuredDataId(string_1);//SimpleFieldAssign//sourceId:126220_1
        }
        if (receptionServiceRes_1 != null) {
            retData.setUnstructuredDataFolderId(receptionServiceRes_1.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1658973_1
        }


        return retData;
    }

    /**
     * D2-删除文档(公共)[7453]
     * gen by moon at 9/27/2023, 10:44:52 PM
     */
    @Trace(operationName = "D2-删除文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteDocumentComRespDto deleteDocumentCom(DeleteDocumentComReqDto reqDto) {


        //步骤0: 2-7-01删除文档 - deleteDocument
        boolean bOOLEAN;
        String string = new String();
        if (reqDto != null) {
            string = reqDto.getUnstructuredDataId();
            ;//SimpleFieldAssign//sourceId:1136318_1
        }

        /*2-7-01删除文档[3241]   */
        Assert.isNull(string, "D2-删除文档(公共)-2-7-01删除文档-文档ID不能为空", false);
        bOOLEAN = mOmsUnstructuredDataService.deleteDocument(string)/*vcase invoke 本地 method 方法调用;*/;


        DeleteDocumentComRespDto retData = new DeleteDocumentComRespDto();


        return retData;
    }

    /**
     * D2执行文件清理(公共)[8354]
     * gen by moon at 4/5/2024, 8:48:25 PM
     */
    @Trace(operationName = "D2执行文件清理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementFileClearComRespDto implementFileClearCom(ImplementFileClearComReqDto reqDto) {


        //步骤0: M2执行文件清理(特殊方法） - implementFileClear
        //ModelCode: clearFile
        ImplementFileClearRespDto clearFileRes = null;
        ImplementFileClearReqDto clearFileReq = new ImplementFileClearReqDto();
        if (reqDto != null) {
            clearFileReq.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1507605_1
            clearFileReq.setFileStorageRootPath(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1696249_1
        }

        /*M2执行文件清理(特殊方法）[8353]  入参文件类型及路径地址，清理对应的文件。 */
        Assert.isNull(clearFileReq.getFileRelativePathAccess(), "D2执行文件清理(公共)-M2执行文件清理(特殊方法）-文件相对路径地址不能为空", false);
        Assert.isNull(clearFileReq.getFileStorageRootPath(), "D2执行文件清理(公共)-M2执行文件清理(特殊方法）-文件存储根路径不能为空", false);
        clearFileRes = nbUnstructuredData.implementFileClear(clearFileReq);


        ImplementFileClearComRespDto retData = new ImplementFileClearComRespDto();


        return retData;
    }

    /**
     * D2新增文档关系(公共)[9704]
     * gen by moon at 6/2/2024, 10:23:53 PM
     */
    @Trace(operationName = "D2新增文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddUnstructuredRelationshipComRespDto addUnstructuredRelationshipCom(AddUnstructuredRelationshipComReqDto reqDto) {


        String string_1 = null;
//步骤0: 2-7-03新增文档关系 - addUnstructuredRelationship
        String string = null;
        OmsUnstructuredDataRelationship omsUnstructuredDataRelationship = new OmsUnstructuredDataRelationship();
        if (reqDto != null) {
            omsUnstructuredDataRelationship.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1836485_1
            omsUnstructuredDataRelationship.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1837760_1
            omsUnstructuredDataRelationship.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1837761_1
            omsUnstructuredDataRelationship.setSourceRelationshipId(reqDto.getSourceRelationshipId());//SimpleFieldAssign//sourceId:1836486_1
            omsUnstructuredDataRelationship.setRelationshipType(reqDto.getRelationshipType());//SimpleFieldAssign//sourceId:1836487_1
            omsUnstructuredDataRelationship.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1836489_1
            omsUnstructuredDataRelationship.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1836490_1
            omsUnstructuredDataRelationship.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1837762_1
            omsUnstructuredDataRelationship.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1836488_1
            omsUnstructuredDataRelationship.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1837763_1
            omsUnstructuredDataRelationship.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1836495_1
            omsUnstructuredDataRelationship.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1836491_1
            omsUnstructuredDataRelationship.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1836492_1
            omsUnstructuredDataRelationship.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1836494_1
            omsUnstructuredDataRelationship.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1836493_1
            omsUnstructuredDataRelationship.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1837764_1
            omsUnstructuredDataRelationship.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1836496_1
            omsUnstructuredDataRelationship.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1836497_1
            omsUnstructuredDataRelationship.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:1836498_1
            omsUnstructuredDataRelationship.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1837743_1
            omsUnstructuredDataRelationship.setAppId(reqDto.getAppId());//SimpleFieldAssign//sourceId:1837744_1
        }

        /*2-7-03新增文档关系[8506]   */
        Assert.isNull(omsUnstructuredDataRelationship.getUnstructuredDataId(), "D2新增文档关系(公共)-2-7-03新增文档关系-文档ID不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getFileRelativePathAccess(), "D2新增文档关系(公共)-2-7-03新增文档关系-文件相对路径地址不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getPostfix(), "D2新增文档关系(公共)-2-7-03新增文档关系-文档后缀不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getRelationshipType(), "D2新增文档关系(公共)-2-7-03新增文档关系-关系类型编码不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getDocUseSceneCode(), "D2新增文档关系(公共)-2-7-03新增文档关系-文档应用业务场景不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getDocUseType(), "D2新增文档关系(公共)-2-7-03新增文档关系-文档用途类型不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getUserId(), "D2新增文档关系(公共)-2-7-03新增文档关系-归属个人账号ID不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getOwnTableTypeCode(), "D2新增文档关系(公共)-2-7-03新增文档关系-归属内容表类型编码不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getOwnEntityId(), "D2新增文档关系(公共)-2-7-03新增文档关系-归属内容表主键ID不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getOrderNumber(), "D2新增文档关系(公共)-2-7-03新增文档关系-排序不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getSpaceId(), "D2新增文档关系(公共)-2-7-03新增文档关系-创建于空间ID不能为空", false);
        Assert.isNull(omsUnstructuredDataRelationship.getAppId(), "D2新增文档关系(公共)-2-7-03新增文档关系-创建于联盟应用ID不能为空", false);
        string = mOmsUnstructuredDataRelationshipService.addUnstructuredRelationship(omsUnstructuredDataRelationship)/*vcase invoke 本地 method 方法调用;*/;


        string_1 = string;

        AddUnstructuredRelationshipComRespDto retData = new AddUnstructuredRelationshipComRespDto();
        if (string_1 != null) {
            retData.setUnstructuredDataRelationshipId(string_1);//SimpleFieldAssign//sourceId:1837796_1
        }


        return retData;
    }

    /**
     * D2查询文档关系实例列表(公共)[8781]
     * gen by moon at 8/25/2024, 12:56:47 PM
     */
    @Trace(operationName = "D2查询文档关系实例列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUnstructuredRelationshipInstanceListComRespDto queryUnstructuredRelationshipInstanceListCom(QueryUnstructuredRelationshipInstanceListComReqDto reqDto) {


        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_1 = new ArrayList<>();
        BatchQueryDocumentComRespDto batchQueryDocumentComRespDto_1 = null;
//virtualUsage 2-7-03查询文档关系列表  65144
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        QueryUnstructuredRelationshipListReq queryUnstructuredRelationshipListReq = new QueryUnstructuredRelationshipListReq();
        if (reqDto != null) {
            queryUnstructuredRelationshipListReq.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1956096_1_65144
            queryUnstructuredRelationshipListReq.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1660899_1_65144
            queryUnstructuredRelationshipListReq.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1945549_1_65144
            queryUnstructuredRelationshipListReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1660900_1_65144
            queryUnstructuredRelationshipListReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1658754_1_65144
            queryUnstructuredRelationshipListReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1658753_1_65144
            queryUnstructuredRelationshipListReq.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1945550_1_65144
            queryUnstructuredRelationshipListReq.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957451_1_65144
            queryUnstructuredRelationshipListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660901_1_65144
            queryUnstructuredRelationshipListReq.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1945551_1_65144
            queryUnstructuredRelationshipListReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1658752_1_65144
            queryUnstructuredRelationshipListReq.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1660902_1_65144
            queryUnstructuredRelationshipListReq.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1956085_1_65144
            queryUnstructuredRelationshipListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1660903_1_65144
            queryUnstructuredRelationshipListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658755_1_65144
        }

        /*2-7-03查询文档关系列表[8505]   */
        Assert.isNull(queryUnstructuredRelationshipListReq.getSpaceId(), "D2查询文档关系实例列表(公共)-2-7-03查询文档关系列表-创建于空间ID不能为空", false);
        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipList(queryUnstructuredRelationshipListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataRelationship_1 = listOmsUnstructuredDataRelationship;
        if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() > 0)) {
            //if(2-7-03查询文档关系列表.文档关系列表数据集条数 大于 0)  65145

            BatchQueryDocumentComRespDto batchQueryDocumentComRespDto = null;
            if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship.size() > 0) {
                BatchQueryDocumentComReqDto batchQueryDocumentComReqDto = new BatchQueryDocumentComReqDto();
                if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship)) {
                    batchQueryDocumentComReqDto.setDocumentList(listOmsUnstructuredDataRelationship.stream().map(item -> item.getUnstructuredDataId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1658763_1_65146
                }
                if (reqDto != null) {
                    batchQueryDocumentComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660853_1_65146
                }

                /*D2-批量查询文档列表(公共)[2670]   */
                Assert.isNull(batchQueryDocumentComReqDto.getSpaceId(), "D2查询文档关系实例列表(公共)-D2-批量查询文档列表(公共)-创建于空间ID不能为空", false);
                batchQueryDocumentComRespDto = batchQueryDocumentCom(batchQueryDocumentComReqDto)/*vcase invoke 同服务,同domain*/;


                batchQueryDocumentComRespDto_1 = batchQueryDocumentComRespDto;
            }
        }
        QueryUnstructuredRelationshipInstanceListComRespDto retData = new QueryUnstructuredRelationshipInstanceListComRespDto();
        //数据集融合  MoreListToOneSource
        if (listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1) && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1)) {
            for (OmsUnstructuredDataRelationship omsUnstructuredDataRelationship : listOmsUnstructuredDataRelationship_1) {
                UnstructuredRelationshipDto retElm = new UnstructuredRelationshipDto();
                retElm.setUnstructuredDataRelationshipId(omsUnstructuredDataRelationship.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:333804_2
                retElm.setUnstructuredDataId(omsUnstructuredDataRelationship.getUnstructuredDataId());//SimpleFieldAssign//sourceId:318583_2
                retElm.setOwnEntityId(omsUnstructuredDataRelationship.getOwnEntityId());//SimpleFieldAssign//sourceId:398474_2
                retElm.setOwnParentContentId(omsUnstructuredDataRelationship.getOwnParentContentId());//SimpleFieldAssign//sourceId:398475_2
                retElm.setThemeContentId(omsUnstructuredDataRelationship.getThemeContentId());//SimpleFieldAssign//sourceId:398476_2
                retElm.setUnstructuredDataAliasName(omsUnstructuredDataRelationship.getUnstructuredDataName());//SimpleFieldAssign//sourceId:412670_2
                retElm.setOrderNumber(omsUnstructuredDataRelationship.getOrderNumber());//SimpleFieldAssign//sourceId:366481_2
                retElm.setOperateTime(omsUnstructuredDataRelationship.getOperateTime());//SimpleFieldAssign//sourceId:366482_2
                retElm.setCreateInductionId(omsUnstructuredDataRelationship.getCreateInductionId());//SimpleFieldAssign//sourceId:398552_2
                retData.getUnstructuredRelationshipList().add(retElm);
                if (batchQueryDocumentComRespDto_1 != null) {
                    for (DocumentDto documentDto : batchQueryDocumentComRespDto_1.getDocumentList()) {
                        if (documentDto.getUnstructuredDataId().equals(omsUnstructuredDataRelationship.getUnstructuredDataId())) {
                            if (batchQueryDocumentComRespDto_1 != null) {
                                retElm.setUnstructuredDataNumber(documentDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:318592_2
                                retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:318593_2
                                retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:318590_2
                                retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:318591_2
                                retElm.setFileRelativePathAccess(documentDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:318596_2
                                retElm.setFileRelativeAllPathAccess(documentDto.getFileRelativeAllPathAccess());//SimpleFieldAssign//sourceId:318596_2
                                retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:318585_2
                                retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:318586_2
                                retElm.setIsUserUpload(documentDto.getIsUserUpload());//SimpleFieldAssign//sourceId:333805_2
                                retElm.setCreateTime(documentDto.getCreateTime());//SimpleFieldAssign//sourceId:405553_2
                            }
                        }
                    }
                }

            }
        }//sourceId:1658780_1


        return retData;
    }

    /**
     * D2执行分离新增或删除文档列表(公共)[8783]
     * gen by moon at 12/3/2024, 10:54:05 AM
     */
    @Trace(operationName = "D2执行分离新增或删除文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementSeparateAddOrDeleteDocListComRespDto implementSeparateAddOrDeleteDocListCom(ImplementSeparateAddOrDeleteDocListComReqDto reqDto) {


        if ((reqDto != null && reqDto.getDocumentList() != null && reqDto.getDocumentList().size() > 0)) {
            //if(D2执行分离新增或删除文档列表(公共).文档列表数据集条数 大于 0)  65147

            ImplementCheckDocListValidityComRespDto implementCheckDocListValidityComRespDto = null;
            ImplementCheckDocListValidityComReqDto implementCheckDocListValidityComReqDto = new ImplementCheckDocListValidityComReqDto();
            if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                implementCheckDocListValidityComReqDto.setDocumentList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1864061_1_69927
            }

            /*D2执行校验文档数据集合法性(公共)[9789]   */

            implementCheckDocListValidityComRespDto = implementCheckDocListValidityCom(implementCheckDocListValidityComReqDto)/*vcase invoke 同服务,同domain*/;


            List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
            QueryUnstructuredRelationshipListReq queryUnstructuredRelationshipListReq = new QueryUnstructuredRelationshipListReq();
            if (reqDto != null) {
                queryUnstructuredRelationshipListReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1658786_1_65153
                queryUnstructuredRelationshipListReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1658785_1_65153
                queryUnstructuredRelationshipListReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1658783_1_65153
                queryUnstructuredRelationshipListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658784_1_65153
            }

            /*2-7-03查询文档关系列表[8505]   */
            Assert.isNull(queryUnstructuredRelationshipListReq.getDocUseSceneCode(), "D2执行分离新增或删除文档列表(公共)-2-7-03查询文档关系列表-文档应用业务场景不能为空", false);
            Assert.isNull(queryUnstructuredRelationshipListReq.getDocUseType(), "D2执行分离新增或删除文档列表(公共)-2-7-03查询文档关系列表-文档用途类型不能为空", false);
            Assert.isNull(queryUnstructuredRelationshipListReq.getOwnEntityId(), "D2执行分离新增或删除文档列表(公共)-2-7-03查询文档关系列表-归属内容表主键ID不能为空", false);
            Assert.isNull(queryUnstructuredRelationshipListReq.getSpaceId(), "D2执行分离新增或删除文档列表(公共)-2-7-03查询文档关系列表-创建于空间ID不能为空", false);
            listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipList(queryUnstructuredRelationshipListReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() == 0)) {
                //if(2-7-03查内容已有文档关系列表.文档关系列表数据集条数 等于 0)  65155

                BatchAddUnstructuredRelationshipComRespDto batchAddUnstructuredRelationshipComRespDto = null;
                BatchAddUnstructuredRelationshipComReqDto batchAddUnstructuredRelationshipComReqDto = new BatchAddUnstructuredRelationshipComReqDto();
                if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                    batchAddUnstructuredRelationshipComReqDto.setDocumentList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659235_1_65199
                }
                if (reqDto != null) {
                    batchAddUnstructuredRelationshipComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1659237_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659236_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1659239_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1659240_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1659241_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1659242_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1659243_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1659244_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1659245_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1659238_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setCopyrightObjectTypeCode(reqDto.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:1947700_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1947701_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1859356_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957480_1_65199
                    batchAddUnstructuredRelationshipComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660927_1_65199
                }

                /*D2批量增文档关系(公共)[8787]   */
                Assert.isNull(batchAddUnstructuredRelationshipComReqDto.getDocUseSceneCode(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-文档应用业务场景不能为空", false);
                Assert.isNull(batchAddUnstructuredRelationshipComReqDto.getDocUseType(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-文档用途类型不能为空", false);
                Assert.isNull(batchAddUnstructuredRelationshipComReqDto.getOwnTableTypeCode(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-归属内容表类型编码不能为空", false);
                Assert.isNull(batchAddUnstructuredRelationshipComReqDto.getOwnEntityId(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-归属内容表主键ID不能为空", false);
                batchAddUnstructuredRelationshipComRespDto = batchAddUnstructuredRelationshipCom(batchAddUnstructuredRelationshipComReqDto)/*vcase invoke 同服务,同domain*/;


            } else if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() > 0)) {
                //elseif(2-7-03查内容已有文档关系列表.文档关系列表数据集条数 大于 0)  65156

                ImplementUniteMultipleManyFieldsDataSetsComRespDto implementUniteMultipleManyFieldsDataSetsComRespDto = null;
                if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship.size() > 0) {
                    ImplementUniteMultipleManyFieldsDataSetsComReqDto implementUniteMultipleManyFieldsDataSetsComReqDto = new ImplementUniteMultipleManyFieldsDataSetsComReqDto();
                    if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship)) {
                        implementUniteMultipleManyFieldsDataSetsComReqDto.setDataSetsListOne(//objList-to-objLists
                                listOmsUnstructuredDataRelationship.stream().map(item -> {
                                    DataSetsListOneDto elm = new DataSetsListOneDto();
                                    elm.setCustomField(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:318508_2_65157
                                    return elm;
                                }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1658746_1_65157
                    }
                    if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                        implementUniteMultipleManyFieldsDataSetsComReqDto.setDataSetsListTwo(//objList-to-objLists
                                reqDto.getDocumentList().stream().map(item -> {
                                    DataSetsListTwoDto elm = new DataSetsListTwoDto();
                                    if (item != null) {
                                        elm.setCustomField(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:318510_2_65157
                                    }
                                    return elm;
                                }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1658747_1_65157
                    }

                    /*D2执行多数据集多字段取交集(公共)[5676]   */

                    implementUniteMultipleManyFieldsDataSetsComRespDto = interfaceModeService.implementUniteMultipleManyFieldsDataSetsCom(implementUniteMultipleManyFieldsDataSetsComReqDto)/*vcase invoke isSameApp*/;


                }
                if ((implementUniteMultipleManyFieldsDataSetsComRespDto != null && implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList() != null && implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList().size() == 0)) {
                    //if(D2已有与入参文档取交集.数据集交集列表数据集条数 等于 0)  65159

                    BatchAddUnstructuredRelationshipComRespDto batchAddUnstructuredRelationshipComRespDto_1 = null;
                    BatchAddUnstructuredRelationshipComReqDto batchAddUnstructuredRelationshipComReqDto_1 = new BatchAddUnstructuredRelationshipComReqDto();
                    if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                        batchAddUnstructuredRelationshipComReqDto_1.setDocumentList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659235_1_65200
                    }
                    if (reqDto != null) {
                        batchAddUnstructuredRelationshipComReqDto_1.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1659237_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659236_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1659239_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1659240_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1659241_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1659242_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1659243_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1659244_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1659245_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1659238_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setCopyrightObjectTypeCode(reqDto.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:1947700_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1947701_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1859356_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957480_1_65200
                        batchAddUnstructuredRelationshipComReqDto_1.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660927_1_65200
                    }

                    /*D2批量增文档关系(公共)[8787]   */
                    Assert.isNull(batchAddUnstructuredRelationshipComReqDto_1.getDocUseSceneCode(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-文档应用业务场景不能为空", false);
                    Assert.isNull(batchAddUnstructuredRelationshipComReqDto_1.getDocUseType(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-文档用途类型不能为空", false);
                    Assert.isNull(batchAddUnstructuredRelationshipComReqDto_1.getOwnTableTypeCode(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-归属内容表类型编码不能为空", false);
                    Assert.isNull(batchAddUnstructuredRelationshipComReqDto_1.getOwnEntityId(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-归属内容表主键ID不能为空", false);
                    batchAddUnstructuredRelationshipComRespDto_1 = batchAddUnstructuredRelationshipCom(batchAddUnstructuredRelationshipComReqDto_1)/*vcase invoke 同服务,同domain*/;


                } else if ((implementUniteMultipleManyFieldsDataSetsComRespDto != null && implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList() != null && implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList().size() > 0)) {
                    //elseif(D2已有与入参文档取交集.数据集交集列表数据集条数 大于 0)  65160

                    ImplementCollectionsDiffComRespDto implementCollectionsDiffComRespDto = null;
                    if (implementUniteMultipleManyFieldsDataSetsComRespDto != null) {
                        ImplementCollectionsDiffComReqDto implementCollectionsDiffComReqDto = new ImplementCollectionsDiffComReqDto();
                        if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                            implementCollectionsDiffComReqDto.setCollectionsDiffComFatList(reqDto.getDocumentList().stream().map(item -> item.getUnstructuredDataId())
                                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1658750_1_65161
                        }
                        if (implementUniteMultipleManyFieldsDataSetsComRespDto != null && implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList() != null && !CollectionUtil.isEmpty(implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList())) {
                            implementCollectionsDiffComReqDto.setCollectionsDiffComSubList(implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList().stream().map(item -> item.getCustomField())
                                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1658749_1_65161
                        }

                        /*D2执行数据集差集(公共)[7197]   */

                        implementCollectionsDiffComRespDto = interfaceModeService.implementCollectionsDiffCom(implementCollectionsDiffComReqDto)/*vcase invoke isSameApp*/;


                    }
                    ImplementCollectionsDiffComRespDto implementCollectionsDiffComRespDto_2 = null;
                    if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship.size() > 0 && implementUniteMultipleManyFieldsDataSetsComRespDto != null) {
                        ImplementCollectionsDiffComReqDto implementCollectionsDiffComReqDto_1 = new ImplementCollectionsDiffComReqDto();
                        if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship)) {
                            implementCollectionsDiffComReqDto_1.setCollectionsDiffComFatList(listOmsUnstructuredDataRelationship.stream().map(item -> item.getUnstructuredDataId())
                                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1658750_1_65163
                        }
                        if (implementUniteMultipleManyFieldsDataSetsComRespDto != null && implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList() != null && !CollectionUtil.isEmpty(implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList())) {
                            implementCollectionsDiffComReqDto_1.setCollectionsDiffComSubList(implementUniteMultipleManyFieldsDataSetsComRespDto.getCollectionsIntersectionsDataList().stream().map(item -> item.getCustomField())
                                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1658749_1_65163
                        }

                        /*D2执行数据集差集(公共)[7197]   */

                        implementCollectionsDiffComRespDto_2 = interfaceModeService.implementCollectionsDiffCom(implementCollectionsDiffComReqDto_1)/*vcase invoke isSameApp*/;


                    }
                    if ((implementCollectionsDiffComRespDto != null && implementCollectionsDiffComRespDto.getCollectionsDiffList() != null && implementCollectionsDiffComRespDto.getCollectionsDiffList().size() > 0)) {
                        //if(D2新增文档列表=入参文档列表-交集文档列表.数据集差集列表数据集条数 大于 0)  65162

                        ImplementDocDataSetMergeFieldComRespDto implementDocDataSetMergeFieldComRespDto = null;
                        if (implementCollectionsDiffComRespDto != null) {
                            ImplementDocDataSetMergeFieldComReqDto implementDocDataSetMergeFieldComReqDto = new ImplementDocDataSetMergeFieldComReqDto();
                            if (implementCollectionsDiffComRespDto != null) {
                                implementDocDataSetMergeFieldComReqDto.setDataSetsListOne(implementCollectionsDiffComRespDto.getCollectionsDiffList());//list-field-assign//sourceId:1659256_1_65202
                            }
                            if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                                implementDocDataSetMergeFieldComReqDto.setDataSetsListTwo(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DataSetsListTwoDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659257_1_65202
                            }

                            /*D2执行文档数据集交集合并字段(公共)[8797]   */

                            implementDocDataSetMergeFieldComRespDto = implementDocDataSetMergeFieldCom(implementDocDataSetMergeFieldComReqDto)/*vcase invoke 同服务,同domain*/;


                        }
                        BatchAddUnstructuredRelationshipComRespDto batchAddUnstructuredRelationshipComRespDto_2 = null;
                        if (implementDocDataSetMergeFieldComRespDto != null) {
                            BatchAddUnstructuredRelationshipComReqDto batchAddUnstructuredRelationshipComReqDto_2 = new BatchAddUnstructuredRelationshipComReqDto();
                            if (implementDocDataSetMergeFieldComRespDto != null && implementDocDataSetMergeFieldComRespDto.getDocumentList() != null && !CollectionUtil.isEmpty(implementDocDataSetMergeFieldComRespDto.getDocumentList())) {
                                batchAddUnstructuredRelationshipComReqDto_2.setDocumentList(implementDocDataSetMergeFieldComRespDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659235_1_65201
                            }
                            if (reqDto != null) {
                                batchAddUnstructuredRelationshipComReqDto_2.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1659237_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659236_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1659239_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1659240_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1659241_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1659242_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1659243_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1659244_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1659245_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1659238_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setCopyrightObjectTypeCode(reqDto.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:1947700_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1947701_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1859356_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957480_1_65201
                                batchAddUnstructuredRelationshipComReqDto_2.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660927_1_65201
                            }

                            /*D2批量增文档关系(公共)[8787]   */
                            Assert.isNull(batchAddUnstructuredRelationshipComReqDto_2.getDocUseSceneCode(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-文档应用业务场景不能为空", false);
                            Assert.isNull(batchAddUnstructuredRelationshipComReqDto_2.getDocUseType(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-文档用途类型不能为空", false);
                            Assert.isNull(batchAddUnstructuredRelationshipComReqDto_2.getOwnTableTypeCode(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-归属内容表类型编码不能为空", false);
                            Assert.isNull(batchAddUnstructuredRelationshipComReqDto_2.getOwnEntityId(), "D2执行分离新增或删除文档列表(公共)-D2批量增文档关系(公共)-归属内容表主键ID不能为空", false);
                            batchAddUnstructuredRelationshipComRespDto_2 = batchAddUnstructuredRelationshipCom(batchAddUnstructuredRelationshipComReqDto_2)/*vcase invoke 同服务,同domain*/;


                        }
                    }
                    if ((implementCollectionsDiffComRespDto_2 != null && implementCollectionsDiffComRespDto_2.getCollectionsDiffList() != null && implementCollectionsDiffComRespDto_2.getCollectionsDiffList().size() > 0)) {
                        //if(D2删除文档列表=已有文档列表-交集文档列表.数据集差集列表数据集条数 大于 0)  65167

                        DeleteUnstructuredRelationshipComRespDto deleteUnstructuredRelationshipComRespDto = null;
                        if (implementCollectionsDiffComRespDto_2 != null) {
                            DeleteUnstructuredRelationshipComReqDto deleteUnstructuredRelationshipComReqDto = new DeleteUnstructuredRelationshipComReqDto();
                            deleteUnstructuredRelationshipComReqDto.setIsCleanPersonalInvalidDocument("FALSE");//sourceId:1934706_1_65196
                            if (implementCollectionsDiffComRespDto_2 != null) {
                                deleteUnstructuredRelationshipComReqDto.setDocumentList(implementCollectionsDiffComRespDto_2.getCollectionsDiffList());//list-field-assign//sourceId:1659012_1_65196
                            }
                            if (reqDto != null) {
                                deleteUnstructuredRelationshipComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1659013_1_65196
                                deleteUnstructuredRelationshipComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659014_1_65196
                            }

                            /*D2删除文档关系(公共)[8786]   */
                            Assert.isNull(deleteUnstructuredRelationshipComReqDto.getIsCleanPersonalInvalidDocument(), "D2执行分离新增或删除文档列表(公共)-D2删除文档关系(公共)-是否清理个人无效文档不能为空", false);
                            Assert.isNull(deleteUnstructuredRelationshipComReqDto.getOwnEntityId(), "D2执行分离新增或删除文档列表(公共)-D2删除文档关系(公共)-归属内容表主键ID不能为空", false);
                            Assert.isNull(deleteUnstructuredRelationshipComReqDto.getSpaceId(), "D2执行分离新增或删除文档列表(公共)-D2删除文档关系(公共)-创建于空间ID不能为空", false);
                            deleteUnstructuredRelationshipComRespDto = deleteUnstructuredRelationshipCom(deleteUnstructuredRelationshipComReqDto)/*vcase invoke 同服务,同domain*/;


                        }
                    }
                }
            }

        }
//virtualUsage D2查平台文件存储根路径配置答案（公共）  71624
        QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
        QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
        queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("FILE_STORAGE_ROOT_PATH");//CUSTOM_CONVENTION//sourceId:1934732_1_71624
        queryConfItemMatchAnswerDetailComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:1934733_1_71624
        queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("TRUE");//sourceId:1934734_1_71624

        /*D2查平台文件存储根路径配置答案（公共）[2486]   */
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D2执行分离新增或删除文档列表(公共)-D2查平台文件存储根路径配置答案（公共）-配置项标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfSchemeCode(), "D2执行分离新增或删除文档列表(公共)-D2查平台文件存储根路径配置答案（公共）-配置方案标识不能为空", false);
        Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D2执行分离新增或删除文档列表(公共)-D2查平台文件存储根路径配置答案（公共）-是否标准答案不能为空", false);
        queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;


//virtualUsage D2执行清理个人用户无效文件(公共)  71625
        ImplementClearMemberInvalidDocComRespDto implementClearMemberInvalidDocComRespDto = null;
        if (queryConfItemMatchAnswerDetailComRespDto != null) {
            ImplementClearMemberInvalidDocComReqDto implementClearMemberInvalidDocComReqDto = new ImplementClearMemberInvalidDocComReqDto();
            implementClearMemberInvalidDocComReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:1934707_1_71625
            if (reqDto != null) {
                implementClearMemberInvalidDocComReqDto.setIsCleanPersonalInvalidDocument(reqDto.getIsCleanPersonalInvalidDocument());//SimpleFieldAssign//sourceId:1934709_1_71625
            }
            if (queryConfItemMatchAnswerDetailComRespDto != null) {
                implementClearMemberInvalidDocComReqDto.setFileStorageRootPath(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1934708_1_71625
            }

            /*D2执行清理个人用户无效文件(公共)[8792]   */
            Assert.isNull(implementClearMemberInvalidDocComReqDto.getUserId(), "D2执行分离新增或删除文档列表(公共)-D2执行清理个人用户无效文件(公共)-归属个人账号不能为空", false);
            Assert.isNull(implementClearMemberInvalidDocComReqDto.getIsCleanPersonalInvalidDocument(), "D2执行分离新增或删除文档列表(公共)-D2执行清理个人用户无效文件(公共)-是否清理个人无效文档不能为空", false);
            Assert.isNull(implementClearMemberInvalidDocComReqDto.getFileStorageRootPath(), "D2执行分离新增或删除文档列表(公共)-D2执行清理个人用户无效文件(公共)-文件存储根路径不能为空", false);
            implementClearMemberInvalidDocComRespDto = implementClearMemberInvalidDocCom(implementClearMemberInvalidDocComReqDto)/*vcase invoke 同服务,同domain*/;


        }
//virtualUsage D2执行文档关系补偿文档名称(公共)  71989
        ImplementUnstructuredRelationshipCompDocNameComRespDto implementUnstructuredRelationshipCompDocNameComRespDto = null;
        ImplementUnstructuredRelationshipCompDocNameComReqDto implementUnstructuredRelationshipCompDocNameComReqDto = new ImplementUnstructuredRelationshipCompDocNameComReqDto();
        if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
            implementUnstructuredRelationshipCompDocNameComReqDto.setDocumentList(reqDto.getDocumentList().stream().map(item -> item.getUnstructuredDataId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1956404_1_71989
        }
        if (reqDto != null) {
            implementUnstructuredRelationshipCompDocNameComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1956405_1_71989
        }

        /*D2执行文档关系补偿文档名称(公共)[10053]   */
        Assert.isNull(implementUnstructuredRelationshipCompDocNameComReqDto.getSpaceId(), "D2执行分离新增或删除文档列表(公共)-D2执行文档关系补偿文档名称(公共)-创建于空间ID不能为空", false);
        implementUnstructuredRelationshipCompDocNameComRespDto = implementUnstructuredRelationshipCompDocNameCom(implementUnstructuredRelationshipCompDocNameComReqDto)/*vcase invoke 同服务,同domain*/;


        ImplementSeparateAddOrDeleteDocListComRespDto retData = new ImplementSeparateAddOrDeleteDocListComRespDto();


        return retData;
    }

    /**
     * D2删除文档关系(公共)[8786]
     * gen by moon at 7/17/2024, 6:43:49 PM
     */
    @Trace(operationName = "D2删除文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteUnstructuredRelationshipComRespDto deleteUnstructuredRelationshipCom(DeleteUnstructuredRelationshipComReqDto reqDto) {


        if ((reqDto != null && reqDto.getDocumentList() != null && reqDto.getDocumentList().size() > 0)) {
            //if(D2删除文档关系(公共).文档列表数据集条数 大于 0)  65169

            QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
            QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto = new QueryConfItemMatchAnswerDetailComReqDto();
            queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("FILE_STORAGE_ROOT_PATH");//CUSTOM_CONVENTION//sourceId:1696240_1_66085
            queryConfItemMatchAnswerDetailComReqDto.setConfSchemeCode("COM_CONF_SCHEME");//CUSTOM_CONVENTION//sourceId:1696241_1_66085
            queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("TRUE");//sourceId:1696242_1_66085

            /*D2查平台文件存储根路径配置答案（公共）[2486]   */
            Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(), "D2删除文档关系(公共)-D2查平台文件存储根路径配置答案（公共）-配置项标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfSchemeCode(), "D2删除文档关系(公共)-D2查平台文件存储根路径配置答案（公共）-配置方案标识不能为空", false);
            Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(), "D2删除文档关系(公共)-D2查平台文件存储根路径配置答案（公共）-是否标准答案不能为空", false);
            queryConfItemMatchAnswerDetailComRespDto = confSchemeService.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto)/*vcase invoke isSameApp*/;


//ModelCode: circulationCollections
            for (String circulationCollectionsRes : reqDto.getDocumentList()) {

                DeleteSingleDocRelOrDocComRespDto deleteSingleDocRelOrDocComRespDto = null;
                if (queryConfItemMatchAnswerDetailComRespDto != null) {
                    DeleteSingleDocRelOrDocComReqDto deleteSingleDocRelOrDocComReqDto = new DeleteSingleDocRelOrDocComReqDto();
                    if (reqDto != null) {
                        deleteSingleDocRelOrDocComReqDto.setIsCleanPersonalInvalidDocument(reqDto.getIsCleanPersonalInvalidDocument());//SimpleFieldAssign//sourceId:1934703_1_65192
                        deleteSingleDocRelOrDocComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1659007_1_65192
                        deleteSingleDocRelOrDocComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659006_1_65192
                    }
                    if (circulationCollectionsRes != null) {
                        deleteSingleDocRelOrDocComReqDto.setUnstructuredDataId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1659005_1_65192
                    }
                    if (queryConfItemMatchAnswerDetailComRespDto != null) {
                        deleteSingleDocRelOrDocComReqDto.setFileStorageRootPath(queryConfItemMatchAnswerDetailComRespDto.getEndValue());//SimpleFieldAssign//sourceId:1696256_1_65192
                    }

                    /*D2删除单个文档关系或文档(公共)[8790]   */
                    Assert.isNull(deleteSingleDocRelOrDocComReqDto.getIsCleanPersonalInvalidDocument(), "D2删除文档关系(公共)-D2删除单个文档关系或文档(公共)-是否清理个人无效文档不能为空", false);
                    Assert.isNull(deleteSingleDocRelOrDocComReqDto.getUnstructuredDataId(), "D2删除文档关系(公共)-D2删除单个文档关系或文档(公共)-文档ID不能为空", false);
                    Assert.isNull(deleteSingleDocRelOrDocComReqDto.getFileStorageRootPath(), "D2删除文档关系(公共)-D2删除单个文档关系或文档(公共)-文件存储根路径不能为空", false);
                    Assert.isNull(deleteSingleDocRelOrDocComReqDto.getSpaceId(), "D2删除文档关系(公共)-D2删除单个文档关系或文档(公共)-创建于空间ID不能为空", false);
                    deleteSingleDocRelOrDocComRespDto = deleteSingleDocRelOrDocCom(deleteSingleDocRelOrDocComReqDto)/*vcase invoke 同服务,同domain*/;


                }
//ModelCode: circulationEnd
            }

        }
        DeleteUnstructuredRelationshipComRespDto retData = new DeleteUnstructuredRelationshipComRespDto();


        return retData;
    }

    /**
     * D2删除单个文档关系或文档(公共)[8790]
     * gen by moon at 7/17/2024, 6:43:56 PM
     */
    @Trace(operationName = "D2删除单个文档关系或文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteSingleDocRelOrDocComRespDto deleteSingleDocRelOrDocCom(DeleteSingleDocRelOrDocComReqDto reqDto) {


        //virtualUsage 2-7-03查询文档关系列表  65174
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        QueryUnstructuredRelationshipListReq queryUnstructuredRelationshipListReq = new QueryUnstructuredRelationshipListReq();
        if (reqDto != null) {
            queryUnstructuredRelationshipListReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1658884_1_65174
            queryUnstructuredRelationshipListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658885_1_65174
        }

        /*2-7-03查询文档关系列表[8505]   */
        Assert.isNull(queryUnstructuredRelationshipListReq.getUnstructuredDataId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系列表-文档ID不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListReq.getSpaceId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系列表-创建于空间ID不能为空", false);
        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipList(queryUnstructuredRelationshipListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() <= 1)) {
            //if(2-7-03查询文档关系列表.文档关系列表数据集条数 小于等于 1)  65175

            if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() == 1 && reqDto != null && reqDto.getOwnEntityId() != null)) {
                //if((2-7-03查询已有文档关系列表.文档关系列表数据集条数 等于 1 and D2删除单个文档关系或文档(公共).归属内容表主键ID 值不等于空 ))  65178

                OmsUnstructuredDataRelationship omsUnstructuredDataRelationship = null;
                QueryUnstructuredRelationshipDetailReq queryUnstructuredRelationshipDetailReq = new QueryUnstructuredRelationshipDetailReq();
                if (reqDto != null) {
                    queryUnstructuredRelationshipDetailReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1658902_1_65179
                    queryUnstructuredRelationshipDetailReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1658895_1_65179
                    queryUnstructuredRelationshipDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658896_1_65179
                }

                /*2-7-03查询文档关系详情[8503]   */
                Assert.isNull(queryUnstructuredRelationshipDetailReq.getUnstructuredDataId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系详情-文档ID不能为空", false);
                Assert.isNull(queryUnstructuredRelationshipDetailReq.getOwnEntityId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系详情-归属内容表主键ID不能为空", false);
                Assert.isNull(queryUnstructuredRelationshipDetailReq.getSpaceId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系详情-创建于空间ID不能为空", false);
                omsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipDetail(queryUnstructuredRelationshipDetailReq)/*vcase invoke 本地 method 方法调用;*/;
                Assert.isTrue(omsUnstructuredDataRelationship == null || omsUnstructuredDataRelationship.getUnstructuredDataRelationshipId() == null, "找不到数据，系统异常", false);


                boolean bOOLEAN;
                if (omsUnstructuredDataRelationship != null) {
                    String string = new String();
                    if (omsUnstructuredDataRelationship != null) {
                        string = omsUnstructuredDataRelationship.getUnstructuredDataRelationshipId();
                        ;//SimpleFieldAssign//sourceId:1658952_1_65182
                    }

                    /*2-7-03删除文档关系[8504]   */
                    Assert.isNull(string, "D2删除单个文档关系或文档(公共)-2-7-03删除文档关系-文档关系ID不能为空", false);
                    bOOLEAN = mOmsUnstructuredDataRelationshipService.deleteUnstructuredRelationship(string)/*vcase invoke 本地 method 方法调用;*/;


                }
                if ((omsUnstructuredDataRelationship != null && omsUnstructuredDataRelationship.getIsNetworkReference() != null && omsUnstructuredDataRelationship.getIsNetworkReference().equals("FALSE"))) {
                    //if(2-7-03查询当前内容的文档关系详情.是否是网盘引用关系 等于 否)  66077

                    boolean bOOLEAN_1;
                    String string_1 = new String();
                    if (reqDto != null) {
                        string_1 = reqDto.getUnstructuredDataId();
                        ;//SimpleFieldAssign//sourceId:1658956_1_66078
                    }

                    /*2-7-01删除文档[3241]   */
                    Assert.isNull(string_1, "D2删除单个文档关系或文档(公共)-2-7-01删除文档-文档ID不能为空", false);
                    bOOLEAN_1 = mOmsUnstructuredDataService.deleteDocument(string_1)/*vcase invoke 本地 method 方法调用;*/;


                    ImplementFileClearComRespDto implementFileClearComRespDto = null;
                    if (omsUnstructuredDataRelationship != null) {
                        ImplementFileClearComReqDto implementFileClearComReqDto = new ImplementFileClearComReqDto();
                        if (omsUnstructuredDataRelationship != null) {
                            implementFileClearComReqDto.setFileRelativePathAccess(omsUnstructuredDataRelationship.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1658971_1_66083
                        }
                        if (reqDto != null) {
                            implementFileClearComReqDto.setFileStorageRootPath(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1696251_1_66083
                        }

                        /*D2执行文件清理(公共)[8354]   */
                        Assert.isNull(implementFileClearComReqDto.getFileRelativePathAccess(), "D2删除单个文档关系或文档(公共)-D2执行文件清理(公共)-文件相对路径地址不能为空", false);
                        Assert.isNull(implementFileClearComReqDto.getFileStorageRootPath(), "D2删除单个文档关系或文档(公共)-D2执行文件清理(公共)-文件存储根路径不能为空", false);
                        implementFileClearComRespDto = implementFileClearCom(implementFileClearComReqDto)/*vcase invoke 同服务,同domain*/;


                    }
                }
            } else if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() == 0)) {
                //elseif(2-7-03查询已有文档关系列表.文档关系列表数据集条数 等于 0)  65180

                OmsUnstructuredData omsUnstructuredData = null;
                QueryDocumentDetailReq queryDocumentDetailReq = new QueryDocumentDetailReq();
                if (reqDto != null) {
                    queryDocumentDetailReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1658986_1_68408
                    queryDocumentDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658987_1_68408
                }

                /*2-7-01查询文档详情[3169]   */
                Assert.isNull(queryDocumentDetailReq.getUnstructuredDataId(), "D2删除单个文档关系或文档(公共)-2-7-01查询文档详情-文档ID不能为空", false);
                Assert.isNull(queryDocumentDetailReq.getSpaceId(), "D2删除单个文档关系或文档(公共)-2-7-01查询文档详情-创建于空间ID不能为空", false);
                omsUnstructuredData = mOmsUnstructuredDataService.queryDocumentDetail(queryDocumentDetailReq)/*vcase invoke 本地 method 方法调用;*/;


                if ((omsUnstructuredData != null && omsUnstructuredData != null && omsUnstructuredData.getIsUserUpload() != null && omsUnstructuredData.getIsUserUpload().equals("FALSE"))) {
                    //if((2-7-01查询文档详情.出参 值不等于空  and 2-7-01查询文档详情.是否来自个人网盘文件 等于 否))  68409

                    boolean bOOLEAN_2;
                    String string_2 = new String();
                    if (reqDto != null) {
                        string_2 = reqDto.getUnstructuredDataId();
                        ;//SimpleFieldAssign//sourceId:1658956_1_68414
                    }

                    /*2-7-01删除文档[3241]   */
                    Assert.isNull(string_2, "D2删除单个文档关系或文档(公共)-2-7-01删除文档-文档ID不能为空", false);
                    bOOLEAN_2 = mOmsUnstructuredDataService.deleteDocument(string_2)/*vcase invoke 本地 method 方法调用;*/;


                    ImplementFileClearComRespDto implementFileClearComRespDto_1 = null;
                    if (omsUnstructuredData != null) {
                        ImplementFileClearComReqDto implementFileClearComReqDto_1 = new ImplementFileClearComReqDto();
                        if (omsUnstructuredData != null) {
                            implementFileClearComReqDto_1.setFileRelativePathAccess(omsUnstructuredData.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1658971_1_68415
                        }
                        if (reqDto != null) {
                            implementFileClearComReqDto_1.setFileStorageRootPath(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1696251_1_68415
                        }

                        /*D2执行文件清理(公共)[8354]   */
                        Assert.isNull(implementFileClearComReqDto_1.getFileRelativePathAccess(), "D2删除单个文档关系或文档(公共)-D2执行文件清理(公共)-文件相对路径地址不能为空", false);
                        Assert.isNull(implementFileClearComReqDto_1.getFileStorageRootPath(), "D2删除单个文档关系或文档(公共)-D2执行文件清理(公共)-文件存储根路径不能为空", false);
                        implementFileClearComRespDto_1 = implementFileClearCom(implementFileClearComReqDto_1)/*vcase invoke 同服务,同domain*/;


                    }
                }
            }
        } else if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() > 1 && reqDto != null && reqDto.getOwnEntityId() != null)) {
            //elseif((2-7-03查询已有文档关系列表.文档关系列表数据集条数 大于 1 and D2删除单个文档关系或文档(公共).归属内容表主键ID 值不等于空 ))  65176

            OmsUnstructuredDataRelationship omsUnstructuredDataRelationship_2 = null;
            QueryUnstructuredRelationshipDetailReq queryUnstructuredRelationshipDetailReq_1 = new QueryUnstructuredRelationshipDetailReq();
            if (reqDto != null) {
                queryUnstructuredRelationshipDetailReq_1.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1658902_1_65181
                queryUnstructuredRelationshipDetailReq_1.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1658895_1_65181
                queryUnstructuredRelationshipDetailReq_1.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1658896_1_65181
            }

            /*2-7-03查询文档关系详情[8503]   */
            Assert.isNull(queryUnstructuredRelationshipDetailReq_1.getUnstructuredDataId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系详情-文档ID不能为空", false);
            Assert.isNull(queryUnstructuredRelationshipDetailReq_1.getOwnEntityId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系详情-归属内容表主键ID不能为空", false);
            Assert.isNull(queryUnstructuredRelationshipDetailReq_1.getSpaceId(), "D2删除单个文档关系或文档(公共)-2-7-03查询文档关系详情-创建于空间ID不能为空", false);
            omsUnstructuredDataRelationship_2 = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipDetail(queryUnstructuredRelationshipDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;
            Assert.isTrue(omsUnstructuredDataRelationship_2 == null || omsUnstructuredDataRelationship_2.getUnstructuredDataRelationshipId() == null, "找不到数据，系统异常", false);


            boolean bOOLEAN_3;
            if (omsUnstructuredDataRelationship_2 != null) {
                String string_3 = new String();
                if (omsUnstructuredDataRelationship_2 != null) {
                    string_3 = omsUnstructuredDataRelationship_2.getUnstructuredDataRelationshipId();
                    ;//SimpleFieldAssign//sourceId:1658952_1_65184
                }

                /*2-7-03删除文档关系[8504]   */
                Assert.isNull(string_3, "D2删除单个文档关系或文档(公共)-2-7-03删除文档关系-文档关系ID不能为空", false);
                bOOLEAN_3 = mOmsUnstructuredDataRelationshipService.deleteUnstructuredRelationship(string_3)/*vcase invoke 本地 method 方法调用;*/;


            }
        }
//virtualUsage D2执行清理个人用户无效文件(公共)  71615
        ImplementClearMemberInvalidDocComRespDto implementClearMemberInvalidDocComRespDto = null;
        ImplementClearMemberInvalidDocComReqDto implementClearMemberInvalidDocComReqDto = new ImplementClearMemberInvalidDocComReqDto();
        implementClearMemberInvalidDocComReqDto.setUserId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecUserId());//CURRENT_USERID//sourceId:1934307_1_71615
        if (reqDto != null) {
            implementClearMemberInvalidDocComReqDto.setIsCleanPersonalInvalidDocument(reqDto.getIsCleanPersonalInvalidDocument());//SimpleFieldAssign//sourceId:1934700_1_71615
            implementClearMemberInvalidDocComReqDto.setFileStorageRootPath(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1934308_1_71615
        }

        /*D2执行清理个人用户无效文件(公共)[8792]   */
        Assert.isNull(implementClearMemberInvalidDocComReqDto.getUserId(), "D2删除单个文档关系或文档(公共)-D2执行清理个人用户无效文件(公共)-归属个人账号不能为空", false);
        Assert.isNull(implementClearMemberInvalidDocComReqDto.getIsCleanPersonalInvalidDocument(), "D2删除单个文档关系或文档(公共)-D2执行清理个人用户无效文件(公共)-是否清理个人无效文档不能为空", false);
        Assert.isNull(implementClearMemberInvalidDocComReqDto.getFileStorageRootPath(), "D2删除单个文档关系或文档(公共)-D2执行清理个人用户无效文件(公共)-文件存储根路径不能为空", false);
        implementClearMemberInvalidDocComRespDto = implementClearMemberInvalidDocCom(implementClearMemberInvalidDocComReqDto)/*vcase invoke 同服务,同domain*/;


        DeleteSingleDocRelOrDocComRespDto retData = new DeleteSingleDocRelOrDocComRespDto();


        return retData;
    }

    /**
     * D2执行上传文档(公共)[8795]
     * gen by moon at 6/11/2024, 6:10:15 AM
     */
    @Trace(operationName = "D2执行上传文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementUploadFileComRespDto implementUploadFileCom(ImplementUploadFileComReqDto reqDto) {


        ImplementTenReceivingFieldRespDto receptionServiceRes_1 = null;
//virtualUsage D2将系统当前日期转换为字符串  65203
        ImplementDateFormatComRespDto implementDateFormatComRespDto = null;
        ImplementDateFormatComReqDto implementDateFormatComReqDto = new ImplementDateFormatComReqDto();
        implementDateFormatComReqDto.setComTimeField(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1659316_1_65203
        implementDateFormatComReqDto.setTimeFormatMode("yyyy");//CUSTOM_CONVENTION//sourceId:1659317_1_65203

        /*D2将系统当前日期转换为字符串[8203]   */
        Assert.isNull(implementDateFormatComReqDto.getComTimeField(), "D2执行上传文档(公共)-D2将系统当前日期转换为字符串-通用时间字段不能为空", false);
        Assert.isNull(implementDateFormatComReqDto.getTimeFormatMode(), "D2执行上传文档(公共)-D2将系统当前日期转换为字符串-时间格式模式不能为空", false);
        implementDateFormatComRespDto = interfaceModeService.implementDateFormatCom(implementDateFormatComReqDto)/*vcase invoke isSameApp*/;


        if ((reqDto != null && reqDto.getPlatformOrTenantDoc() != null && reqDto.getPlatformOrTenantDoc().equals("PLATFORM"))) {
            //if(D2执行上传文档(公共).平台或租户文档 等于 平台)  65204

            GenerateSemanticInstanceStoryComRespDto generateSemanticInstanceStoryComRespDto = null;
            if (implementDateFormatComRespDto != null) {
                GenerateSemanticInstanceStoryComReqDto generateSemanticInstanceStoryComReqDto = new GenerateSemanticInstanceStoryComReqDto();
                generateSemanticInstanceStoryComReqDto.setTemplateSemanticEngineCode("PLATFORM_DOCUMENT_PATH");//CUSTOM_CONVENTION//sourceId:1659325_1_65205
                generateSemanticInstanceStoryComReqDto.setFirstFieldName("fileStorageRootPath");//CUSTOM_CONVENTION//sourceId:1659319_1_65205
                generateSemanticInstanceStoryComReqDto.setSecondFieldName("platformOrTenantDoc");//CUSTOM_CONVENTION//sourceId:1659321_1_65205
                generateSemanticInstanceStoryComReqDto.setThirdFieldName("docUseType");//CUSTOM_CONVENTION//sourceId:1659323_1_65205
                generateSemanticInstanceStoryComReqDto.setFourFieldName("comTxtField");//CUSTOM_CONVENTION//sourceId:1659327_1_65205
                if (reqDto != null) {
                    generateSemanticInstanceStoryComReqDto.setFirstFieldValue(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1659320_1_65205
                    generateSemanticInstanceStoryComReqDto.setSecondFieldValue(reqDto.getPlatformOrTenantDoc());//SimpleFieldAssign//sourceId:1659322_1_65205
                    generateSemanticInstanceStoryComReqDto.setThirdFieldValue(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659324_1_65205
                }
                if (implementDateFormatComRespDto != null) {
                    generateSemanticInstanceStoryComReqDto.setFourFieldValue(implementDateFormatComRespDto.getComTxtField());//SimpleFieldAssign//sourceId:1659328_1_65205
                }

                /*D2生成平台文档存储全路径（不含文档名称）[8234]   */
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getTemplateSemanticEngineCode(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-模板引擎标识不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getFirstFieldName(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第一个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getFirstFieldValue(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第一个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getSecondFieldName(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第二个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getSecondFieldValue(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第二个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getThirdFieldName(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第三个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getThirdFieldValue(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第三个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getFourFieldName(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第四个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto.getFourFieldValue(), "D2执行上传文档(公共)-D2生成平台文档存储全路径（不含文档名称）-第四个字段字段值不能为空", false);
                generateSemanticInstanceStoryComRespDto = templateEngineService.generateSemanticInstanceStoryCom(generateSemanticInstanceStoryComReqDto)/*vcase invoke isSameApp*/;


            }
            GenerateSemanticInstanceStoryComRespDto generateSemanticInstanceStoryComRespDto_2 = null;
            if (implementDateFormatComRespDto != null) {
                GenerateSemanticInstanceStoryComReqDto generateSemanticInstanceStoryComReqDto_1 = new GenerateSemanticInstanceStoryComReqDto();
                generateSemanticInstanceStoryComReqDto_1.setTemplateSemanticEngineCode("PLATFORM_DOCUMENT_RELATIVE_PATH");//CUSTOM_CONVENTION//sourceId:1862350_1_69883
                generateSemanticInstanceStoryComReqDto_1.setFirstFieldName("platformOrTenantDoc");//CUSTOM_CONVENTION//sourceId:1862344_1_69883
                generateSemanticInstanceStoryComReqDto_1.setSecondFieldName("docUseType");//CUSTOM_CONVENTION//sourceId:1862346_1_69883
                generateSemanticInstanceStoryComReqDto_1.setThirdFieldName("comTxtField");//CUSTOM_CONVENTION//sourceId:1862348_1_69883
                if (reqDto != null) {
                    generateSemanticInstanceStoryComReqDto_1.setFirstFieldValue(reqDto.getPlatformOrTenantDoc());//SimpleFieldAssign//sourceId:1862345_1_69883
                    generateSemanticInstanceStoryComReqDto_1.setSecondFieldValue(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1862347_1_69883
                }
                if (implementDateFormatComRespDto != null) {
                    generateSemanticInstanceStoryComReqDto_1.setThirdFieldValue(implementDateFormatComRespDto.getComTxtField());//SimpleFieldAssign//sourceId:1862349_1_69883
                }

                /*D2生成平台文档相对路径（用于接口入参）[8234]   */
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getTemplateSemanticEngineCode(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-模板引擎标识不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getFirstFieldName(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-第一个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getFirstFieldValue(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-第一个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getSecondFieldName(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-第二个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getSecondFieldValue(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-第二个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getThirdFieldName(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-第三个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_1.getThirdFieldValue(), "D2执行上传文档(公共)-D2生成平台文档相对路径（用于接口入参）-第三个字段字段值不能为空", false);
                generateSemanticInstanceStoryComRespDto_2 = templateEngineService.generateSemanticInstanceStoryCom(generateSemanticInstanceStoryComReqDto_1)/*vcase invoke isSameApp*/;


            }
//ModelCode: receptionService
            ImplementTenReceivingFieldRespDto receptionServiceRes = null;
            if (generateSemanticInstanceStoryComRespDto_2 != null && generateSemanticInstanceStoryComRespDto != null) {
                ImplementTenReceivingFieldReqDto receptionServiceReq = new ImplementTenReceivingFieldReqDto();
                if (generateSemanticInstanceStoryComRespDto_2 != null) {
                    receptionServiceReq.setFileRelativePathAccess(generateSemanticInstanceStoryComRespDto_2.getObjectName());//SimpleFieldAssign//sourceId:1659387_1_65214
                    receptionServiceReq.setFileRelativeAllPathAccess(generateSemanticInstanceStoryComRespDto_2.getObjectName());//SimpleFieldAssign//sourceId:1861803_1_65214
                }
                if (generateSemanticInstanceStoryComRespDto != null) {
                    receptionServiceReq.setFileStoreAllPathAccess(generateSemanticInstanceStoryComRespDto.getObjectName());//SimpleFieldAssign//sourceId:1862343_1_65214
                }

                /*M2接收出参：文档存储全路径、展示全路径、相对路径[8782]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getFileRelativePathAccess(), "D2执行上传文档(公共)-M2接收出参：文档存储全路径、展示全路径、相对路径-文件相对路径地址不能为空", false);
                Assert.isNull(receptionServiceReq.getFileRelativeAllPathAccess(), "D2执行上传文档(公共)-M2接收出参：文档存储全路径、展示全路径、相对路径-文档展示全路径地址不能为空", false);
                Assert.isNull(receptionServiceReq.getFileStoreAllPathAccess(), "D2执行上传文档(公共)-M2接收出参：文档存储全路径、展示全路径、相对路径-实体文件存储全路径地址不能为空", false);
                receptionServiceRes = nbUnstructuredData.implementTenReceivingField(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
            }
        } else if ((reqDto != null && reqDto.getPlatformOrTenantDoc() != null && reqDto.getPlatformOrTenantDoc().equals("SPACE"))) {
            //elseif(D2执行上传文档(公共).平台或租户文档 等于 租户)  65206

            GenerateSemanticInstanceStoryComRespDto generateSemanticInstanceStoryComRespDto_4 = null;
            if (implementDateFormatComRespDto != null) {
                GenerateSemanticInstanceStoryComReqDto generateSemanticInstanceStoryComReqDto_2 = new GenerateSemanticInstanceStoryComReqDto();
                generateSemanticInstanceStoryComReqDto_2.setTemplateSemanticEngineCode("TENANT_DOCUMENT_PATH");//CUSTOM_CONVENTION//sourceId:1659335_1_65207
                generateSemanticInstanceStoryComReqDto_2.setFirstFieldName("fileStorageRootPath");//CUSTOM_CONVENTION//sourceId:1659329_1_65207
                generateSemanticInstanceStoryComReqDto_2.setSecondFieldName("platformOrTenantDoc");//CUSTOM_CONVENTION//sourceId:1659331_1_65207
                generateSemanticInstanceStoryComReqDto_2.setThirdFieldName("spaceId");//CUSTOM_CONVENTION//sourceId:1659333_1_65207
                generateSemanticInstanceStoryComReqDto_2.setFourFieldName("userId");//CUSTOM_CONVENTION//sourceId:1659337_1_65207
                generateSemanticInstanceStoryComReqDto_2.setFiveFieldName("docUseType");//CUSTOM_CONVENTION//sourceId:1659351_1_65207
                generateSemanticInstanceStoryComReqDto_2.setSixFieldName("comTxtField");//CUSTOM_CONVENTION//sourceId:1863312_1_65207
                if (reqDto != null) {
                    generateSemanticInstanceStoryComReqDto_2.setFirstFieldValue(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1659330_1_65207
                    generateSemanticInstanceStoryComReqDto_2.setSecondFieldValue(reqDto.getPlatformOrTenantDoc());//SimpleFieldAssign//sourceId:1659332_1_65207
                    generateSemanticInstanceStoryComReqDto_2.setThirdFieldValue(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659334_1_65207
                    generateSemanticInstanceStoryComReqDto_2.setFourFieldValue(reqDto.getUserId());//SimpleFieldAssign//sourceId:1659338_1_65207
                    generateSemanticInstanceStoryComReqDto_2.setFiveFieldValue(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1659352_1_65207
                }
                if (implementDateFormatComRespDto != null) {
                    generateSemanticInstanceStoryComReqDto_2.setSixFieldValue(implementDateFormatComRespDto.getComTxtField());//SimpleFieldAssign//sourceId:1863313_1_65207
                }

                /*D2生成租户文档存储全路径（不含文档名称）[8234]   */
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getTemplateSemanticEngineCode(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-模板引擎标识不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getFirstFieldName(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第一个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getFirstFieldValue(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第一个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getSecondFieldName(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第二个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getSecondFieldValue(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第二个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getThirdFieldName(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第三个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getThirdFieldValue(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第三个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getFourFieldName(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第四个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getFourFieldValue(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第四个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getFiveFieldName(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第五个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getFiveFieldValue(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第五个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getSixFieldName(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第六个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_2.getSixFieldValue(), "D2执行上传文档(公共)-D2生成租户文档存储全路径（不含文档名称）-第六个字段字段值不能为空", false);
                generateSemanticInstanceStoryComRespDto_4 = templateEngineService.generateSemanticInstanceStoryCom(generateSemanticInstanceStoryComReqDto_2)/*vcase invoke isSameApp*/;


            }
            GenerateSemanticInstanceStoryComRespDto generateSemanticInstanceStoryComRespDto_6 = null;
            if (implementDateFormatComRespDto != null) {
                GenerateSemanticInstanceStoryComReqDto generateSemanticInstanceStoryComReqDto_3 = new GenerateSemanticInstanceStoryComReqDto();
                generateSemanticInstanceStoryComReqDto_3.setTemplateSemanticEngineCode("TENANT_DOCUMENT_RELATIVE_PATH");//CUSTOM_CONVENTION//sourceId:1862362_1_69884
                generateSemanticInstanceStoryComReqDto_3.setFirstFieldName("platformOrTenantDoc");//CUSTOM_CONVENTION//sourceId:1862356_1_69884
                generateSemanticInstanceStoryComReqDto_3.setSecondFieldName("spaceId");//CUSTOM_CONVENTION//sourceId:1862358_1_69884
                generateSemanticInstanceStoryComReqDto_3.setThirdFieldName("userId");//CUSTOM_CONVENTION//sourceId:1862360_1_69884
                generateSemanticInstanceStoryComReqDto_3.setFourFieldName("docUseType");//CUSTOM_CONVENTION//sourceId:1862394_1_69884
                generateSemanticInstanceStoryComReqDto_3.setFiveFieldName("comTxtField");//CUSTOM_CONVENTION//sourceId:1863304_1_69884
                if (reqDto != null) {
                    generateSemanticInstanceStoryComReqDto_3.setFirstFieldValue(reqDto.getPlatformOrTenantDoc());//SimpleFieldAssign//sourceId:1862357_1_69884
                    generateSemanticInstanceStoryComReqDto_3.setSecondFieldValue(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1862359_1_69884
                    generateSemanticInstanceStoryComReqDto_3.setThirdFieldValue(reqDto.getUserId());//SimpleFieldAssign//sourceId:1862361_1_69884
                    generateSemanticInstanceStoryComReqDto_3.setFourFieldValue(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1862395_1_69884
                }
                if (implementDateFormatComRespDto != null) {
                    generateSemanticInstanceStoryComReqDto_3.setFiveFieldValue(implementDateFormatComRespDto.getComTxtField());//SimpleFieldAssign//sourceId:1863305_1_69884
                }

                /*D2生成租户文档相对路径（用于接口入参）[8234]   */
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getTemplateSemanticEngineCode(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-模板引擎标识不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getFirstFieldName(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第一个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getFirstFieldValue(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第一个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getSecondFieldName(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第二个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getSecondFieldValue(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第二个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getThirdFieldName(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第三个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getThirdFieldValue(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第三个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getFourFieldName(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第四个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getFourFieldValue(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第四个字段字段值不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getFiveFieldName(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第五个字段字段名不能为空", false);
                Assert.isNull(generateSemanticInstanceStoryComReqDto_3.getFiveFieldValue(), "D2执行上传文档(公共)-D2生成租户文档相对路径（用于接口入参）-第五个字段字段值不能为空", false);
                generateSemanticInstanceStoryComRespDto_6 = templateEngineService.generateSemanticInstanceStoryCom(generateSemanticInstanceStoryComReqDto_3)/*vcase invoke isSameApp*/;


            }
//ModelCode: receptionService
            ImplementTenReceivingFieldRespDto receptionServiceRes_2 = null;
            if (generateSemanticInstanceStoryComRespDto_6 != null && generateSemanticInstanceStoryComRespDto_4 != null) {
                ImplementTenReceivingFieldReqDto receptionServiceReq_1 = new ImplementTenReceivingFieldReqDto();
                if (generateSemanticInstanceStoryComRespDto_6 != null) {
                    receptionServiceReq_1.setFileRelativePathAccess(generateSemanticInstanceStoryComRespDto_6.getObjectName());//SimpleFieldAssign//sourceId:1659387_1_65215
                    receptionServiceReq_1.setFileRelativeAllPathAccess(generateSemanticInstanceStoryComRespDto_6.getObjectName());//SimpleFieldAssign//sourceId:1861803_1_65215
                }
                if (generateSemanticInstanceStoryComRespDto_4 != null) {
                    receptionServiceReq_1.setFileStoreAllPathAccess(generateSemanticInstanceStoryComRespDto_4.getObjectName());//SimpleFieldAssign//sourceId:1862343_1_65215
                }

                /*M2接收出参：文档存储全路径、展示全路径、相对路径[8782]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_1.getFileRelativePathAccess(), "D2执行上传文档(公共)-M2接收出参：文档存储全路径、展示全路径、相对路径-文件相对路径地址不能为空", false);
                Assert.isNull(receptionServiceReq_1.getFileRelativeAllPathAccess(), "D2执行上传文档(公共)-M2接收出参：文档存储全路径、展示全路径、相对路径-文档展示全路径地址不能为空", false);
                Assert.isNull(receptionServiceReq_1.getFileStoreAllPathAccess(), "D2执行上传文档(公共)-M2接收出参：文档存储全路径、展示全路径、相对路径-实体文件存储全路径地址不能为空", false);
                receptionServiceRes_2 = nbUnstructuredData.implementTenReceivingField(receptionServiceReq_1);


                receptionServiceRes_1 = receptionServiceRes_2;
            }
        }
        ImplementUploadFileComRespDto retData = new ImplementUploadFileComRespDto();
        //todo dong 未找到匹配生成策略,请检查生成策略retData.setPostfix(),数据源项; to( ==>tableName:oms_unstructured_data, fieldEnname:postfix ,uniqueId: 1659224_1 uniqueSourceId:out_1659216_1) from (varName:undefined fieldundefined)
//todo dong 未找到匹配生成策略,请检查生成策略retData.setFileSize(),数据源项; to( ==>tableName:oms_unstructured_data, fieldEnname:fileSize ,uniqueId: 1659225_1 uniqueSourceId:out_1659217_1) from (varName:undefined fieldundefined)
//todo dong 未找到匹配生成策略,请检查生成策略retData.setUnstructuredDataName(),数据源项; to( ==>tableName:oms_unstructured_data, fieldEnname:unstructuredDataName ,uniqueId: 1659226_1 uniqueSourceId:out_1659218_1) from (varName:undefined fieldundefined)
        if (receptionServiceRes_1 != null) {
            retData.setFileRelativePathAccess(receptionServiceRes_1.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1659388_1
            retData.setFileRelativeAllPathAccess(receptionServiceRes_1.getFileRelativeAllPathAccess());//SimpleFieldAssign//sourceId:1862339_1
            retData.setFileStoreAllPathAccess(receptionServiceRes_1.getFileStoreAllPathAccess());//SimpleFieldAssign//sourceId:1862368_1
        }


        return retData;
    }

    /**
     * D2执行文档数据集交集合并字段(公共)[8797]
     * gen by moon at 3/27/2024, 1:02:52 AM
     */
    @Trace(operationName = "D2执行文档数据集交集合并字段(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementDocDataSetMergeFieldComRespDto implementDocDataSetMergeFieldCom(ImplementDocDataSetMergeFieldComReqDto reqDto) {


        ImplementDocDataSetMergeFieldRespDto docDataSetMergeFieldRes_1 = null;
//步骤0: M2执行文档数据集交集合并字段（特殊方法） - implementDocDataSetMergeField
        //ModelCode: docDataSetMergeField
        ImplementDocDataSetMergeFieldRespDto docDataSetMergeFieldRes = null;
        ImplementDocDataSetMergeFieldReqDto docDataSetMergeFieldReq = new ImplementDocDataSetMergeFieldReqDto();
        if (reqDto != null) {
            docDataSetMergeFieldReq.setDataSetsListOne(reqDto.getDataSetsListOne());//list-field-assign//sourceId:1659250_1
        }
        if (reqDto != null && reqDto.getDataSetsListTwo() != null && !CollectionUtil.isEmpty(reqDto.getDataSetsListTwo())) {
            docDataSetMergeFieldReq.setDataSetsListTwo(reqDto.getDataSetsListTwo().stream().map(item -> BeanUtil.toBean(item, DataSetsListTwoDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659251_1
        }

        /*M2执行文档数据集交集合并字段（特殊方法）[8796]   */

        docDataSetMergeFieldRes = nbUnstructuredData.implementDocDataSetMergeField(docDataSetMergeFieldReq);


        docDataSetMergeFieldRes_1 = docDataSetMergeFieldRes;

        ImplementDocDataSetMergeFieldComRespDto retData = new ImplementDocDataSetMergeFieldComRespDto();
        if (docDataSetMergeFieldRes_1 != null) {
            retData.setDocumentList(docDataSetMergeFieldRes_1.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659255_1
        }


        return retData;
    }

    /**
     * D2执行清理个人用户无效文件(公共)[8792]
     * gen by moon at 7/18/2024, 6:10:11 PM
     */
    @Trace(operationName = "D2执行清理个人用户无效文件(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementClearMemberInvalidDocComRespDto implementClearMemberInvalidDocCom(ImplementClearMemberInvalidDocComReqDto reqDto) {


        //virtualUsage 2-7-02查询文件夹列表  65217
        List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder = new ArrayList<>();
        QueryDataFolderListReq queryDataFolderListReq = new QueryDataFolderListReq();
        queryDataFolderListReq.setIsPrivateNetDisk("FALSE");//sourceId:1659395_1_65217
        if (reqDto != null) {
            queryDataFolderListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1659452_1_65217
        }

        /*2-7-02查询文件夹列表[8799]   */
        Assert.isNull(queryDataFolderListReq.getUserId(), "D2执行清理个人用户无效文件(公共)-2-7-02查询文件夹列表-归属个人账号不能为空", false);
        Assert.isNull(queryDataFolderListReq.getIsPrivateNetDisk(), "D2执行清理个人用户无效文件(公共)-2-7-02查询文件夹列表-是否自主网盘不能为空", false);
        listOmsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderList(queryDataFolderListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder.size() > 0 && reqDto != null && reqDto.getIsCleanPersonalInvalidDocument() != null && reqDto.getIsCleanPersonalInvalidDocument().equals("TRUE"))) {
            //if((2-7-02查询文件夹列表.文件夹列表数据集条数 大于 0 and D2执行清理个人用户无效文件(公共).是否清理个人无效文档 等于 是))  65218

            List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
            if (listOmsUnstructuredDataFolder != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataFolder) && listOmsUnstructuredDataFolder.size() > 0) {
                BatchQueryDocumentListByIdsReq batchQueryDocumentListByIdsReq = new BatchQueryDocumentListByIdsReq();
                if (listOmsUnstructuredDataFolder != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataFolder) && listOmsUnstructuredDataFolder != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataFolder)) {
                    batchQueryDocumentListByIdsReq.setDataFolderList(listOmsUnstructuredDataFolder.stream().map(item -> item.getUnstructuredDataFolderId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1659443_1_65220
                }

                /*2-7-01批量查询文档列表By文件夹Ids[8800]   */

                listOmsUnstructuredData = mOmsUnstructuredDataService.batchQueryDocumentListByIds(batchQueryDocumentListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;


            }
            if ((listOmsUnstructuredData != null && listOmsUnstructuredData != null && listOmsUnstructuredData.size() > 0)) {
                //if(2-7-01批量查询文档列表By文件夹Ids.文档列表数据集条数 大于 0)  65221

//ModelCode: circulationCollections
                for (OmsUnstructuredData circulationCollectionsRes : listOmsUnstructuredData) {

                    OmsUnstructuredDataRelationship omsUnstructuredDataRelationship = null;
                    QueryUnstructuredRelationshipDetailReq queryUnstructuredRelationshipDetailReq = new QueryUnstructuredRelationshipDetailReq();
                    if (circulationCollectionsRes != null) {
                        queryUnstructuredRelationshipDetailReq.setUnstructuredDataId(circulationCollectionsRes.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1659466_1_65228
                    }

                    /*2-7-03查询文档关系详情[8503]   */
                    Assert.isNull(queryUnstructuredRelationshipDetailReq.getUnstructuredDataId(), "D2执行清理个人用户无效文件(公共)-2-7-03查询文档关系详情-文档ID不能为空", false);
                    omsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipDetail(queryUnstructuredRelationshipDetailReq)/*vcase invoke 本地 method 方法调用;*/;


                    if ((omsUnstructuredDataRelationship == null)) {
                        //if(2-7-03查询文档关系详情.出参 值等于空 )  65224

                        boolean bOOLEAN;
                        String string = new String();
                        if (circulationCollectionsRes != null) {
                            string = circulationCollectionsRes.getUnstructuredDataId();
                            ;//SimpleFieldAssign//sourceId:1659411_1_65225
                        }

                        /*2-7-01删除文档[3241]   */
                        Assert.isNull(string, "D2执行清理个人用户无效文件(公共)-2-7-01删除文档-文档ID不能为空", false);
                        bOOLEAN = mOmsUnstructuredDataService.deleteDocument(string)/*vcase invoke 本地 method 方法调用;*/;


                        ImplementFileClearComRespDto implementFileClearComRespDto = null;
                        ImplementFileClearComReqDto implementFileClearComReqDto = new ImplementFileClearComReqDto();
                        if (reqDto != null) {
                            implementFileClearComReqDto.setFileStorageRootPath(reqDto.getFileStorageRootPath());//SimpleFieldAssign//sourceId:1787213_1_65226
                        }
                        if (circulationCollectionsRes != null) {
                            implementFileClearComReqDto.setFileRelativePathAccess(circulationCollectionsRes.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1659421_1_65226
                        }

                        /*D2执行文件清理(公共)[8354]   */
                        Assert.isNull(implementFileClearComReqDto.getFileStorageRootPath(), "D2执行清理个人用户无效文件(公共)-D2执行文件清理(公共)-文件存储根路径不能为空", false);
                        Assert.isNull(implementFileClearComReqDto.getFileRelativePathAccess(), "D2执行清理个人用户无效文件(公共)-D2执行文件清理(公共)-文件相对路径地址不能为空", false);
                        implementFileClearComRespDto = implementFileClearCom(implementFileClearComReqDto)/*vcase invoke 同服务,同domain*/;


                    }
//ModelCode: circulationEnd
                }

            }
        }
        ImplementClearMemberInvalidDocComRespDto retData = new ImplementClearMemberInvalidDocComRespDto();


        return retData;
    }

    /**
     * D2删除文件夹(公共)[8807]
     * gen by moon at 3/27/2024, 7:38:59 PM
     */
    @Trace(operationName = "D2删除文件夹(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteDataFolderComRespDto deleteDataFolderCom(DeleteDataFolderComReqDto reqDto) {


        //步骤0: 2-7-02删除文件夹 - deleteDataFolder
        boolean bOOLEAN;
        String string = new String();
        if (reqDto != null) {
            string = reqDto.getUnstructuredDataFolderId();
            ;//SimpleFieldAssign//sourceId:1659550_1
        }

        /*2-7-02删除文件夹[2909]   */
        Assert.isNull(string, "D2删除文件夹(公共)-2-7-02删除文件夹-文件夹ID不能为空", false);
        bOOLEAN = mOmsUnstructuredDataFolderService.deleteDataFolder(string)/*vcase invoke 本地 method 方法调用;*/;


        DeleteDataFolderComRespDto retData = new DeleteDataFolderComRespDto();


        return retData;
    }

    /**
     * D2修改文件夹(公共)[8802]
     * gen by moon at 3/27/2024, 7:39:10 PM
     */
    @Trace(operationName = "D2修改文件夹(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateDataFolderComRespDto updateDataFolderCom(UpdateDataFolderComReqDto reqDto) {


        //步骤0: 2-7-02修改文件夹 - updateDataFolder
        boolean bOOLEAN;
        OmsUnstructuredDataFolder omsUnstructuredDataFolder = new OmsUnstructuredDataFolder();
        omsUnstructuredDataFolder.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1659536_1
        omsUnstructuredDataFolder.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1659537_1
        if (reqDto != null) {
            omsUnstructuredDataFolder.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1659533_1
            omsUnstructuredDataFolder.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1659534_1
            omsUnstructuredDataFolder.setFileSize(reqDto.getFileSize());//SimpleFieldAssign//sourceId:1659535_1
        }

        /*2-7-02修改文件夹[8804]   */
        Assert.isNull(omsUnstructuredDataFolder.getUnstructuredDataFolderId(), "D2修改文件夹(公共)-2-7-02修改文件夹-文件夹ID不能为空", false);
        Assert.isNull(omsUnstructuredDataFolder.getOperationInductionId(), "D2修改文件夹(公共)-2-7-02修改文件夹-操作人就职记录ID不能为空", false);
        Assert.isNull(omsUnstructuredDataFolder.getOperateTime(), "D2修改文件夹(公共)-2-7-02修改文件夹-操作时间不能为空", false);
        bOOLEAN = mOmsUnstructuredDataFolderService.updateDataFolder(omsUnstructuredDataFolder)/*vcase invoke 本地 method 方法调用;*/;


        UpdateDataFolderComRespDto retData = new UpdateDataFolderComRespDto();


        return retData;
    }

    /**
     * D2新增文件夹(公共)[8801]
     * gen by moon at 3/27/2024, 7:39:35 PM
     */
    @Trace(operationName = "D2新增文件夹(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddDataFolderComRespDto addDataFolderCom(AddDataFolderComReqDto reqDto) {


        String string_1 = null;
//步骤0: 2-7-02新增文件夹 - addDataFolder
        String string = null;
        OmsUnstructuredDataFolder omsUnstructuredDataFolder = new OmsUnstructuredDataFolder();
        if (reqDto != null) {
            omsUnstructuredDataFolder.setParentUnstructuredDataFolderId(reqDto.getParentUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1659481_1
            omsUnstructuredDataFolder.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1659482_1
            omsUnstructuredDataFolder.setIsRootFolder(reqDto.getIsRootFolder());//SimpleFieldAssign//sourceId:1659484_1
            omsUnstructuredDataFolder.setIsLastFolder(reqDto.getIsLastFolder());//SimpleFieldAssign//sourceId:1659485_1
            omsUnstructuredDataFolder.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659490_1
            omsUnstructuredDataFolder.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1659486_1
            omsUnstructuredDataFolder.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1659488_1
            omsUnstructuredDataFolder.setMemberId(reqDto.getMemberId());//SimpleFieldAssign//sourceId:1659487_1
            omsUnstructuredDataFolder.setSourceIdentityType(reqDto.getSourceIdentityType());//SimpleFieldAssign//sourceId:1659489_1
            omsUnstructuredDataFolder.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659479_1
        }

        /*2-7-02新增文件夹[2839]   */
        Assert.isNull(omsUnstructuredDataFolder.getFolderName(), "D2新增文件夹(公共)-2-7-02新增文件夹-文件夹名不能为空", false);
        Assert.isNull(omsUnstructuredDataFolder.getIsPrivateNetDisk(), "D2新增文件夹(公共)-2-7-02新增文件夹-是否自主网盘不能为空", false);
        Assert.isNull(omsUnstructuredDataFolder.getUserId(), "D2新增文件夹(公共)-2-7-02新增文件夹-归属个人账号不能为空", false);
        Assert.isNull(omsUnstructuredDataFolder.getSpaceId(), "D2新增文件夹(公共)-2-7-02新增文件夹-创建于空间ID不能为空", false);
        string = mOmsUnstructuredDataFolderService.addDataFolder(omsUnstructuredDataFolder)/*vcase invoke 本地 method 方法调用;*/;


        string_1 = string;

        AddDataFolderComRespDto retData = new AddDataFolderComRespDto();
        if (string_1 != null) {
            retData.setUnstructuredDataFolderId(string_1);//SimpleFieldAssign//sourceId:1659502_1
        }


        return retData;
    }

    /**
     * D2查询文件夹列表(公共)[8808]
     * gen by moon at 8/12/2024, 8:03:50 PM
     */
    @Trace(operationName = "D2查询文件夹列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDataFolderListComRespDto queryDataFolderListCom(QueryDataFolderListComReqDto reqDto) {


        List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder_1 = new ArrayList<>();
//步骤0: 2-7-02查询文件夹列表 - queryDataFolderList
        List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder = new ArrayList<>();
        QueryDataFolderListReq queryDataFolderListReq = new QueryDataFolderListReq();
        if (reqDto != null) {
            queryDataFolderListReq.setParentUnstructuredDataFolderId(reqDto.getParentUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1659571_1
            queryDataFolderListReq.setIsRootFolder(reqDto.getIsRootFolder());//SimpleFieldAssign//sourceId:1969861_1
            queryDataFolderListReq.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659561_1
            queryDataFolderListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1659562_1
            queryDataFolderListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1659564_1
            queryDataFolderListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659572_1
        }

        /*2-7-02查询文件夹列表[8799]   */
        Assert.isNull(queryDataFolderListReq.getSpaceId(), "D2查询文件夹列表(公共)-2-7-02查询文件夹列表-创建于空间ID不能为空", false);
        listOmsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderList(queryDataFolderListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataFolder_1 = listOmsUnstructuredDataFolder;

        QueryDataFolderListComRespDto retData = new QueryDataFolderListComRespDto();
        retData.setDataFolderList(listOmsUnstructuredDataFolder_1.stream().map(item -> BeanUtil.toBean(item, DataFolderDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1659573_1


        return retData;
    }

    /**
     * D2查询我的网盘最新文档列表(公共)[8809]
     * gen by moon at 8/10/2024, 9:27:50 PM
     */
    @Trace(operationName = "D2查询我的网盘最新文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryMyNetDiskLatestDocListComRespDto queryMyNetDiskLatestDocListCom(QueryMyNetDiskLatestDocListComReqDto reqDto) {


        ImplementTenReceivingFieldRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getUnstructuredDataFolderId() == null)) {
            //if(D2查询我的网盘最新文档列表(公共).文件夹ID 值等于空 )  65295

            List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder = new ArrayList<>();
            QueryDataFolderListReq queryDataFolderListReq = new QueryDataFolderListReq();
            if (reqDto != null) {
                queryDataFolderListReq.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1659675_1_65297
                queryDataFolderListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1966901_1_65297
                queryDataFolderListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1659796_1_65297
                queryDataFolderListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659682_1_65297
            }

            /*2-7-02查询文件夹列表[8799]   */
            Assert.isNull(queryDataFolderListReq.getSpaceId(), "D2查询我的网盘最新文档列表(公共)-2-7-02查询文件夹列表-创建于空间ID不能为空", false);
            listOmsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderList(queryDataFolderListReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder.size() > 0)) {
                //if(2-7-02查我网盘文件夹列表(公共).文件夹列表数据集条数 大于 0)  65298

                List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
                if (listOmsUnstructuredDataFolder != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataFolder) && listOmsUnstructuredDataFolder.size() > 0) {
                    BatchQueryDocumentListByIdsReq batchQueryDocumentListByIdsReq = new BatchQueryDocumentListByIdsReq();
                    if (listOmsUnstructuredDataFolder != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataFolder) && listOmsUnstructuredDataFolder != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataFolder)) {
                        batchQueryDocumentListByIdsReq.setDataFolderList(listOmsUnstructuredDataFolder.stream().map(item -> item.getUnstructuredDataFolderId())
                                .collect(Collectors.toList()));/*list-to-strings*///sourceId:1659671_1_65299
                    }
                    if (reqDto != null) {
                        batchQueryDocumentListByIdsReq.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1659767_1_65299
                        batchQueryDocumentListByIdsReq.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1659769_1_65299
                        batchQueryDocumentListByIdsReq.setUnstructuredDataType(reqDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:1659809_1_65299
                        batchQueryDocumentListByIdsReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1659699_1_65299
                    }

                    /*2-7-01批量查询文档列表By文件夹Ids[8800]   */
                    Assert.isNull(batchQueryDocumentListByIdsReq.getSpaceId(), "D2查询我的网盘最新文档列表(公共)-2-7-01批量查询文档列表By文件夹Ids-创建于空间ID不能为空", false);
                    listOmsUnstructuredData = mOmsUnstructuredDataService.batchQueryDocumentListByIds(batchQueryDocumentListByIdsReq)/*vcase invoke 本地 method 方法调用;*/;


                }
//ModelCode: receptionService
                ImplementTenReceivingFieldRespDto receptionServiceRes = null;
                if (listOmsUnstructuredData != null && !CollectionUtil.isEmpty(listOmsUnstructuredData) && listOmsUnstructuredData.size() > 0) {
                    ImplementTenReceivingFieldReqDto receptionServiceReq = new ImplementTenReceivingFieldReqDto();
                    if (listOmsUnstructuredData != null && !CollectionUtil.isEmpty(listOmsUnstructuredData) && listOmsUnstructuredData != null && !CollectionUtil.isEmpty(listOmsUnstructuredData)) {
                        receptionServiceReq.setDocumentList(listOmsUnstructuredData.stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660822_1_65301
                    }

                    /*M2-接收 文档列表[8782]  用于特殊方法接收上游入参。 */

                    receptionServiceRes = nbUnstructuredData.implementTenReceivingField(receptionServiceReq);


                    receptionServiceRes_1 = receptionServiceRes;
                }
            }
        } else if ((reqDto != null && reqDto.getUnstructuredDataFolderId() != null)) {
            //elseif(D2查询我的网盘最新文档列表(公共).文件夹ID 值不等于空 )  65296

            List<OmsUnstructuredData> listOmsUnstructuredData_2 = new ArrayList<>();
            QueryDocumentListReq queryDocumentListReq = new QueryDocumentListReq();
            if (reqDto != null) {
                queryDocumentListReq.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660686_1_65300
                queryDocumentListReq.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1660693_1_65300
                queryDocumentListReq.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1660692_1_65300
                queryDocumentListReq.setUnstructuredDataType(reqDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:1660691_1_65300
                queryDocumentListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660687_1_65300
            }

            /*2-7-01查询文档列表[8821]   */
            Assert.isNull(queryDocumentListReq.getUnstructuredDataFolderId(), "D2查询我的网盘最新文档列表(公共)-2-7-01查询文档列表-文件夹ID不能为空", false);
            Assert.isNull(queryDocumentListReq.getSpaceId(), "D2查询我的网盘最新文档列表(公共)-2-7-01查询文档列表-创建于空间ID不能为空", false);
            listOmsUnstructuredData_2 = mOmsUnstructuredDataService.queryDocumentList(queryDocumentListReq)/*vcase invoke 本地 method 方法调用;*/;


//ModelCode: receptionService
            ImplementTenReceivingFieldRespDto receptionServiceRes_2 = null;
            if (listOmsUnstructuredData_2 != null && !CollectionUtil.isEmpty(listOmsUnstructuredData_2) && listOmsUnstructuredData_2.size() > 0) {
                ImplementTenReceivingFieldReqDto receptionServiceReq_1 = new ImplementTenReceivingFieldReqDto();
                if (listOmsUnstructuredData_2 != null && !CollectionUtil.isEmpty(listOmsUnstructuredData_2) && listOmsUnstructuredData_2 != null && !CollectionUtil.isEmpty(listOmsUnstructuredData_2)) {
                    receptionServiceReq_1.setDocumentList(listOmsUnstructuredData_2.stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660822_1_65302
                }

                /*M2-接收 文档列表[8782]  用于特殊方法接收上游入参。 */

                receptionServiceRes_2 = nbUnstructuredData.implementTenReceivingField(receptionServiceReq_1);


                receptionServiceRes_1 = receptionServiceRes_2;
            }
        }
        QueryMyNetDiskLatestDocListComRespDto retData = new QueryMyNetDiskLatestDocListComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setDocumentList(receptionServiceRes_1.getDocumentList().stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1660828_1
        }


        return retData;
    }

    /**
     * D2修改文件夹业务处理(公共)[8814]
     * gen by moon at 3/27/2024, 7:40:19 PM
     */
    @Trace(operationName = "D2修改文件夹业务处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateDataFolderBizProComRespDto updateDataFolderBizProCom(UpdateDataFolderBizProComReqDto reqDto) {


        if ((reqDto != null && reqDto.getFolderName() != null)) {
            //if(D2修改文件夹业务处理(公共).文件夹名 值不等于空 )  65252

            OmsUnstructuredDataFolder omsUnstructuredDataFolder = null;
            QueryDataFolderDetailReq queryDataFolderDetailReq = new QueryDataFolderDetailReq();
            if (reqDto != null) {
                queryDataFolderDetailReq.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660171_1_65253
                queryDataFolderDetailReq.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660172_1_65253
                queryDataFolderDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660173_1_65253
            }

            /*2-7-02查询文件夹详情[2842]   */
            Assert.isNull(queryDataFolderDetailReq.getUnstructuredDataFolderId(), "D2修改文件夹业务处理(公共)-2-7-02查询文件夹详情-文件夹ID不能为空", false);
            Assert.isNull(queryDataFolderDetailReq.getSpaceId(), "D2修改文件夹业务处理(公共)-2-7-02查询文件夹详情-创建于空间ID不能为空", false);
            omsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderDetail(queryDataFolderDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((omsUnstructuredDataFolder != null)) {
                //if(2-7-02查询文件夹名称是否修改.出参 值不等于空 )  65254

//异常结束 65256
                throw new BizException("2220300358", "对不起，文件夹名称未修改，无需处理～", false);
            } else if ((omsUnstructuredDataFolder == null)) {
                //elseif(2-7-02查询文件夹名称是否修改.出参 值等于空 )  65257

                List<OmsUnstructuredDataFolder> listOmsUnstructuredDataFolder = new ArrayList<>();
                QueryDataFolderListReq queryDataFolderListReq = new QueryDataFolderListReq();
                if (reqDto != null) {
                    queryDataFolderListReq.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660187_1_65258
                    queryDataFolderListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660178_1_65258
                    queryDataFolderListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660184_1_65258
                }

                /*2-7-02查询文件夹列表[8799]   */
                Assert.isNull(queryDataFolderListReq.getFolderName(), "D2修改文件夹业务处理(公共)-2-7-02查询文件夹列表-文件夹名不能为空", false);
                Assert.isNull(queryDataFolderListReq.getUserId(), "D2修改文件夹业务处理(公共)-2-7-02查询文件夹列表-归属个人账号不能为空", false);
                Assert.isNull(queryDataFolderListReq.getSpaceId(), "D2修改文件夹业务处理(公共)-2-7-02查询文件夹列表-创建于空间ID不能为空", false);
                listOmsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderList(queryDataFolderListReq)/*vcase invoke 本地 method 方法调用;*/;


                if ((listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder.size() > 0)) {
                    //if(2-7-02查同一层级是否存在同名文件夹.文件夹列表数据集条数 大于 0)  65259

//异常结束 65260
                    throw new BizException("2220300357", "对不起，已存在同名文件夹～", false);
                } else if ((listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder != null && listOmsUnstructuredDataFolder.size() == 0)) {
                    //elseif(2-7-02查同一层级是否存在同名文件夹.文件夹列表数据集条数 等于 0)  65289

                    UpdateDataFolderComRespDto updateDataFolderComRespDto = null;
                    UpdateDataFolderComReqDto updateDataFolderComReqDto = new UpdateDataFolderComReqDto();
                    if (reqDto != null) {
                        updateDataFolderComReqDto.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660217_1_65290
                        updateDataFolderComReqDto.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660218_1_65290
                    }

                    /*D2修改文件夹(公共)[8802]   */
                    Assert.isNull(updateDataFolderComReqDto.getUnstructuredDataFolderId(), "D2修改文件夹业务处理(公共)-D2修改文件夹(公共)-文件夹ID不能为空", false);
                    Assert.isNull(updateDataFolderComReqDto.getFolderName(), "D2修改文件夹业务处理(公共)-D2修改文件夹(公共)-文件夹名不能为空", false);
                    updateDataFolderComRespDto = updateDataFolderCom(updateDataFolderComReqDto)/*vcase invoke 同服务,同domain*/;


                }
            }
        }
        UpdateDataFolderBizProComRespDto retData = new UpdateDataFolderBizProComRespDto();


        return retData;
    }

    /**
     * D2删除文件夹业务处理(公共)[8817]
     * gen by moon at 3/27/2024, 7:40:31 PM
     */
    @Trace(operationName = "D2删除文件夹业务处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteDataFolderBizProComRespDto deleteDataFolderBizProCom(DeleteDataFolderBizProComReqDto reqDto) {


        //virtualUsage 2-7-01查询文档列表  65270
        List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
        QueryDocumentListReq queryDocumentListReq = new QueryDocumentListReq();
        if (reqDto != null) {
            queryDocumentListReq.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660508_1_65270
            queryDocumentListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660509_1_65270
        }

        /*2-7-01查询文档列表[8821]   */
        Assert.isNull(queryDocumentListReq.getUnstructuredDataFolderId(), "D2删除文件夹业务处理(公共)-2-7-01查询文档列表-文件夹ID不能为空", false);
        Assert.isNull(queryDocumentListReq.getSpaceId(), "D2删除文件夹业务处理(公共)-2-7-01查询文档列表-创建于空间ID不能为空", false);
        listOmsUnstructuredData = mOmsUnstructuredDataService.queryDocumentList(queryDocumentListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listOmsUnstructuredData != null && listOmsUnstructuredData != null && listOmsUnstructuredData.size() > 0)) {
            //if(2-7-01查文件夹下是否存在文档.文档列表数据集条数 大于 0)  65271

//异常结束 65272
            throw new BizException("2220300359", "对不起，该文件夹下有文档，不能删除～", false);
        } else if ((listOmsUnstructuredData != null && listOmsUnstructuredData != null && listOmsUnstructuredData.size() == 0)) {
            //elseif(2-7-01查文件夹下是否存在文档.文档列表数据集条数 等于 0)  65273

            DeleteDataFolderComRespDto deleteDataFolderComRespDto = null;
            DeleteDataFolderComReqDto deleteDataFolderComReqDto = new DeleteDataFolderComReqDto();
            if (reqDto != null) {
                deleteDataFolderComReqDto.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660298_1_65274
            }

            /*D2删除文件夹(公共)[8807]   */
            Assert.isNull(deleteDataFolderComReqDto.getUnstructuredDataFolderId(), "D2删除文件夹业务处理(公共)-D2删除文件夹(公共)-文件夹ID不能为空", false);
            deleteDataFolderComRespDto = deleteDataFolderCom(deleteDataFolderComReqDto)/*vcase invoke 同服务,同domain*/;


        }
        DeleteDataFolderBizProComRespDto retData = new DeleteDataFolderBizProComRespDto();


        return retData;
    }

    /**
     * D2新增文件夹业务处理(公共)[8819]
     * gen by moon at 8/12/2024, 8:03:52 PM
     */
    @Trace(operationName = "D2新增文件夹业务处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddDataFolderBizProComRespDto addDataFolderBizProCom(AddDataFolderBizProComReqDto reqDto) {


        //virtualUsage 2-7-02查询文件夹详情  65265
        OmsUnstructuredDataFolder omsUnstructuredDataFolder = null;
        QueryDataFolderDetailReq queryDataFolderDetailReq = new QueryDataFolderDetailReq();
        if (reqDto != null) {
            queryDataFolderDetailReq.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660445_1_65265
            queryDataFolderDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660448_1_65265
            queryDataFolderDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660449_1_65265
        }

        /*2-7-02查询文件夹详情[2842]   */
        Assert.isNull(queryDataFolderDetailReq.getFolderName(), "D2新增文件夹业务处理(公共)-2-7-02查询文件夹详情-文件夹名不能为空", false);
        Assert.isNull(queryDataFolderDetailReq.getUserId(), "D2新增文件夹业务处理(公共)-2-7-02查询文件夹详情-归属个人账号不能为空", false);
        Assert.isNull(queryDataFolderDetailReq.getSpaceId(), "D2新增文件夹业务处理(公共)-2-7-02查询文件夹详情-创建于空间ID不能为空", false);
        omsUnstructuredDataFolder = mOmsUnstructuredDataFolderService.queryDataFolderDetail(queryDataFolderDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((omsUnstructuredDataFolder == null)) {
            //if(2-7-02查询文件夹详情.出参 值等于空 )  65266

            AddDataFolderComRespDto addDataFolderComRespDto = null;
            AddDataFolderComReqDto addDataFolderComReqDto = new AddDataFolderComReqDto();
            addDataFolderComReqDto.setIsLastFolder("TRUE");//sourceId:1660407_1_65267
            if (reqDto != null) {
                addDataFolderComReqDto.setParentUnstructuredDataFolderId(reqDto.getParentUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1660404_1_65267
                addDataFolderComReqDto.setFolderName(reqDto.getFolderName());//SimpleFieldAssign//sourceId:1660405_1_65267
                addDataFolderComReqDto.setIsRootFolder(reqDto.getIsRootFolder());//SimpleFieldAssign//sourceId:1660406_1_65267
                addDataFolderComReqDto.setIsPrivateNetDisk(reqDto.getIsPrivateNetDisk());//SimpleFieldAssign//sourceId:1660408_1_65267
                addDataFolderComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1660409_1_65267
                addDataFolderComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1660410_1_65267
                addDataFolderComReqDto.setMemberId(reqDto.getMemberId());//SimpleFieldAssign//sourceId:1660411_1_65267
                addDataFolderComReqDto.setSourceIdentityType(reqDto.getSourceIdentityType());//SimpleFieldAssign//sourceId:1660412_1_65267
                addDataFolderComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1660413_1_65267
            }

            /*D2新增文件夹(公共)[8801]   */
            Assert.isNull(addDataFolderComReqDto.getFolderName(), "D2新增文件夹业务处理(公共)-D2新增文件夹(公共)-文件夹名不能为空", false);
            Assert.isNull(addDataFolderComReqDto.getIsRootFolder(), "D2新增文件夹业务处理(公共)-D2新增文件夹(公共)-是否一级文件夹不能为空", false);
            Assert.isNull(addDataFolderComReqDto.getIsLastFolder(), "D2新增文件夹业务处理(公共)-D2新增文件夹(公共)-是否末级文件夹 不能为空", false);
            Assert.isNull(addDataFolderComReqDto.getIsPrivateNetDisk(), "D2新增文件夹业务处理(公共)-D2新增文件夹(公共)-是否自主网盘不能为空", false);
            Assert.isNull(addDataFolderComReqDto.getUserId(), "D2新增文件夹业务处理(公共)-D2新增文件夹(公共)-归属个人账号不能为空", false);
            Assert.isNull(addDataFolderComReqDto.getSpaceId(), "D2新增文件夹业务处理(公共)-D2新增文件夹(公共)-创建于空间ID不能为空", false);
            addDataFolderComRespDto = addDataFolderCom(addDataFolderComReqDto)/*vcase invoke 同服务,同domain*/;


        } else if ((omsUnstructuredDataFolder != null)) {
            //elseif(2-7-02查询文件夹详情.出参 值不等于空 )  65268

//异常结束 65269
            throw new BizException("2220300357", "对不起，已存在同名文件夹～", false);
        }
        if ((reqDto != null && reqDto.getParentUnstructuredDataFolderId() != null)) {
            //if(D2新增文件夹业务处理(公共).父文件夹ID 值不等于空 )  72128

            boolean bOOLEAN;
            OmsUnstructuredDataFolder omsUnstructuredDataFolder_2 = new OmsUnstructuredDataFolder();
            omsUnstructuredDataFolder_2.setIsLastFolder("FALSE");//sourceId:1968449_1_72129
            omsUnstructuredDataFolder_2.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1968446_1_72129
            omsUnstructuredDataFolder_2.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1968447_1_72129
            if (reqDto != null) {
                omsUnstructuredDataFolder_2.setUnstructuredDataFolderId(reqDto.getParentUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1968443_1_72129
            }

            /*2-7-02修改文件夹[8804]   */
            Assert.isNull(omsUnstructuredDataFolder_2.getUnstructuredDataFolderId(), "D2新增文件夹业务处理(公共)-2-7-02修改文件夹-文件夹ID不能为空", false);
            Assert.isNull(omsUnstructuredDataFolder_2.getIsLastFolder(), "D2新增文件夹业务处理(公共)-2-7-02修改文件夹-是否末级文件夹 不能为空", false);
            Assert.isNull(omsUnstructuredDataFolder_2.getOperationInductionId(), "D2新增文件夹业务处理(公共)-2-7-02修改文件夹-操作人就职记录ID不能为空", false);
            Assert.isNull(omsUnstructuredDataFolder_2.getOperateTime(), "D2新增文件夹业务处理(公共)-2-7-02修改文件夹-操作时间不能为空", false);
            bOOLEAN = mOmsUnstructuredDataFolderService.updateDataFolder(omsUnstructuredDataFolder_2)/*vcase invoke 本地 method 方法调用;*/;


        }
        AddDataFolderBizProComRespDto retData = new AddDataFolderBizProComRespDto();


        return retData;
    }

    /**
     * D2批量查询文档关系By父内容id(公共)[8833]
     * gen by moon at 3/27/2024, 10:28:25 PM
     */
    @Trace(operationName = "D2批量查询文档关系By父内容id(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryUnstructuredRelationshipComRespDto batchQueryUnstructuredRelationshipCom(BatchQueryUnstructuredRelationshipComReqDto reqDto) {


        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_1 = new ArrayList<>();
//步骤0: 2-7-03批量查询文档关系By父内容id - batchQueryUnstructuredRelationship
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        BatchQueryUnstructuredRelationshipReq batchQueryUnstructuredRelationshipReq = new BatchQueryUnstructuredRelationshipReq();
        if (reqDto != null) {
            batchQueryUnstructuredRelationshipReq.setUnstructuredRelationshipList(reqDto.getUnstructuredRelationshipList());//list-field-assign//sourceId:1660669_1
            batchQueryUnstructuredRelationshipReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1661126_1
            batchQueryUnstructuredRelationshipReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1661138_1
            batchQueryUnstructuredRelationshipReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1661127_1
        }

        /*2-7-03批量查询文档关系By父内容id[8831]   */

        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.batchQueryUnstructuredRelationship(batchQueryUnstructuredRelationshipReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataRelationship_1 = listOmsUnstructuredDataRelationship;

        BatchQueryUnstructuredRelationshipComRespDto retData = new BatchQueryUnstructuredRelationshipComRespDto();
        if (listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1) && listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1)) {
            retData.setUnstructuredRelationshipList(listOmsUnstructuredDataRelationship_1.stream().map(item -> item.getOwnParentContentId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660672_1
        }


        return retData;
    }

    /**
     * D2批量查询文档关系By归属内容表主键id(公共)[8834]
     * gen by moon at 3/27/2024, 8:13:43 PM
     */
    @Trace(operationName = "D2批量查询文档关系By归属内容表主键id(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryDmAttRelaComRespDto batchQueryDmAttRelaCom(BatchQueryDmAttRelaComReqDto reqDto) {


        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_1 = new ArrayList<>();
//步骤0: 2-7-03批量查询文档关系By归属内容表主键id - batchQueryDmAttRela
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        BatchQueryDmAttRelaReq batchQueryDmAttRelaReq = new BatchQueryDmAttRelaReq();
        if (reqDto != null) {
            batchQueryDmAttRelaReq.setUnstructuredRelationshipList(reqDto.getUnstructuredRelationshipList());//list-field-assign//sourceId:1660675_1
        }

        /*2-7-03批量查询文档关系By归属内容表主键id[8832]   */

        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.batchQueryDmAttRela(batchQueryDmAttRelaReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataRelationship_1 = listOmsUnstructuredDataRelationship;

        BatchQueryDmAttRelaComRespDto retData = new BatchQueryDmAttRelaComRespDto();
        if (listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1) && listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1)) {
            retData.setUnstructuredRelationshipList(listOmsUnstructuredDataRelationship_1.stream().map(item -> item.getOwnEntityId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1660678_1
        }


        return retData;
    }

    /**
     * D2批量增文档关系(公共)[8787]
     * gen by moon at 8/6/2024, 1:08:11 AM
     */
    @Trace(operationName = "D2批量增文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchAddUnstructuredRelationshipComRespDto batchAddUnstructuredRelationshipCom(BatchAddUnstructuredRelationshipComReqDto reqDto) {


        if ((reqDto != null && reqDto.getDocumentList() != null && reqDto.getDocumentList().size() > 0)) {
            //if(D2新增文档关系(公共).文档列表数据集条数 大于 0)  65197

            boolean bOOLEAN;
            List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
            if (reqDto != null && reqDto.getDocumentList() != null && !CollectionUtil.isEmpty(reqDto.getDocumentList())) {
                listOmsUnstructuredDataRelationship = //objList-to-objLists
                        reqDto.getDocumentList().stream().map(item -> {
                            OmsUnstructuredDataRelationship elm = new OmsUnstructuredDataRelationship();
                            elm.setOrderNumber(Long.valueOf(0));//CUSTOM_CONVENTION//sourceId:318695_2_65198
                            elm.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:318696_2_65198
                            elm.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:318697_2_65198
                            elm.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:318698_2_65198
                            elm.setCreateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:318699_2_65198
                            elm.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:318700_2_65198
                            elm.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:318701_2_65198
                            if (item != null) {
                                elm.setUnstructuredDataId(item.getUnstructuredDataId());//SimpleFieldAssign//sourceId:318680_2_65198
                                elm.setUnstructuredDataName(item.getUnstructuredDataName());//SimpleFieldAssign//sourceId:401474_2_65198
                                elm.setPostfix(item.getPostfix());//SimpleFieldAssign//sourceId:319645_2_65198
                                elm.setFileRelativePathAccess(item.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:319646_2_65198
                                elm.setSourceRelationshipId(item.getSourceRelationshipId());//SimpleFieldAssign//sourceId:318681_2_65198
                                elm.setRelationshipType(item.getRelationshipType() != null ? String.valueOf(item.getRelationshipType()) : "");//SimpleFieldAssign//sourceId:318682_2_65198
                                elm.setIsNetworkReference(item.getIsNetworkReference() != null ? String.valueOf(item.getIsNetworkReference()) : "");//SimpleFieldAssign//sourceId:318685_2_65198
                                elm.setDocUseSceneCode(reqDto.getDocUseSceneCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318684_2_65198
                                elm.setDocUseType(reqDto.getDocUseType());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318683_2_65198
                                elm.setIsResult(reqDto.getIsResult());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318702_2_65198
                                elm.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318687_2_65198
                                elm.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318688_2_65198
                                elm.setOwnEntityId(reqDto.getOwnEntityId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318689_2_65198
                                elm.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318690_2_65198
                                elm.setOwnParentContentCode(reqDto.getOwnParentContentCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318691_2_65198
                                elm.setOwnParentContentId(reqDto.getOwnParentContentId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318692_2_65198
                                elm.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318693_2_65198
                                elm.setThemeContentId(reqDto.getThemeContentId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:318694_2_65198
                                elm.setCopyrightObjectTypeCode(reqDto.getCopyrightObjectTypeCode());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:398625_2_65198
                                elm.setCopyrightObjectId(reqDto.getCopyrightObjectId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:398626_2_65198
                                elm.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:402296_2_65198
                                elm.setUserId(reqDto.getUserId());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:319647_2_65198
                            }
                            return elm;
                        }).collect(Collectors.toList());//objList-to-objLists//sourceId:1659207_1_65198
            }

            /*2-7-03批量增文档关系[8794]   */

            bOOLEAN = mOmsUnstructuredDataRelationshipService.batchAddUnstructuredRelationship(listOmsUnstructuredDataRelationship)/*vcase invoke 本地 method 方法调用;*/;


        }
        BatchAddUnstructuredRelationshipComRespDto retData = new BatchAddUnstructuredRelationshipComRespDto();


        return retData;
    }

    /**
     * D2查询文档关系列表(公共)[9270]
     * gen by moon at 4/5/2024, 8:48:44 PM
     */
    @Trace(operationName = "D2查询文档关系列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUnstructuredRelationshipListComRespDto queryUnstructuredRelationshipListCom(QueryUnstructuredRelationshipListComReqDto reqDto) {


        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_1 = new ArrayList<>();
//步骤0: 2-7-03查询文档关系列表 - queryUnstructuredRelationshipList
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        QueryUnstructuredRelationshipListReq queryUnstructuredRelationshipListReq = new QueryUnstructuredRelationshipListReq();
        if (reqDto != null) {
            queryUnstructuredRelationshipListReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1696160_1
            queryUnstructuredRelationshipListReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1696161_1
            queryUnstructuredRelationshipListReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1696162_1
            queryUnstructuredRelationshipListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1696163_1
            queryUnstructuredRelationshipListReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1696164_1
            queryUnstructuredRelationshipListReq.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1696165_1
            queryUnstructuredRelationshipListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1696166_1
            queryUnstructuredRelationshipListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1696167_1
        }

        /*2-7-03查询文档关系列表[8505]   */
        Assert.isNull(queryUnstructuredRelationshipListReq.getSpaceId(), "D2查询文档关系列表(公共)-2-7-03查询文档关系列表-创建于空间ID不能为空", false);
        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipList(queryUnstructuredRelationshipListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataRelationship_1 = listOmsUnstructuredDataRelationship;

        QueryUnstructuredRelationshipListComRespDto retData = new QueryUnstructuredRelationshipListComRespDto();
        retData.setUnstructuredRelationshipList(listOmsUnstructuredDataRelationship_1.stream().map(item -> BeanUtil.toBean(item, UnstructuredRelationshipDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1696159_1


        return retData;
    }

    /**
     * D2修改文档关系(公共)[9558]
     * gen by moon at 8/25/2024, 12:56:53 PM
     */
    @Trace(operationName = "D2修改文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateUnstructuredRelationshipComRespDto updateUnstructuredRelationshipCom(UpdateUnstructuredRelationshipComReqDto reqDto) {


        //步骤0: 2-7-03修改文档关系 - updateUnstructuredRelationship
        boolean bOOLEAN;
        OmsUnstructuredDataRelationship omsUnstructuredDataRelationship = new OmsUnstructuredDataRelationship();
        if (reqDto != null) {
            omsUnstructuredDataRelationship.setUnstructuredDataRelationshipId(reqDto.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:1792208_1
            omsUnstructuredDataRelationship.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1792209_1
            omsUnstructuredDataRelationship.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1986959_1
            omsUnstructuredDataRelationship.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1792210_1
            omsUnstructuredDataRelationship.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1792211_1
            omsUnstructuredDataRelationship.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1792212_1
            omsUnstructuredDataRelationship.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1792213_1
            omsUnstructuredDataRelationship.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1792214_1
            omsUnstructuredDataRelationship.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1793794_1
        }

        /*2-7-03修改文档关系[9557]   */
        Assert.isNull(omsUnstructuredDataRelationship.getUnstructuredDataRelationshipId(), "D2修改文档关系(公共)-2-7-03修改文档关系-文档关系ID不能为空", false);
        bOOLEAN = mOmsUnstructuredDataRelationshipService.updateUnstructuredRelationship(omsUnstructuredDataRelationship)/*vcase invoke 本地 method 方法调用;*/;


        UpdateUnstructuredRelationshipComRespDto retData = new UpdateUnstructuredRelationshipComRespDto();


        return retData;
    }

    /**
     * D2查询文档关系详情(公共)[9670]
     * gen by moon at 5/27/2024, 10:09:42 PM
     */
    @Trace(operationName = "D2查询文档关系详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUnstructuredRelationshipDetailComRespDto queryUnstructuredRelationshipDetailCom(QueryUnstructuredRelationshipDetailComReqDto reqDto) {


        OmsUnstructuredDataRelationship omsUnstructuredDataRelationship_1 = null;
//步骤0: 2-7-03查询文档关系详情 - queryUnstructuredRelationshipDetail
        OmsUnstructuredDataRelationship omsUnstructuredDataRelationship = null;
        QueryUnstructuredRelationshipDetailReq queryUnstructuredRelationshipDetailReq = new QueryUnstructuredRelationshipDetailReq();
        if (reqDto != null) {
            queryUnstructuredRelationshipDetailReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1823121_1
            queryUnstructuredRelationshipDetailReq.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1823127_1
            queryUnstructuredRelationshipDetailReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1823115_1
            queryUnstructuredRelationshipDetailReq.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1823128_1
            queryUnstructuredRelationshipDetailReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1823129_1
            queryUnstructuredRelationshipDetailReq.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1823116_1
            queryUnstructuredRelationshipDetailReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1823117_1
            queryUnstructuredRelationshipDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1823118_1
        }

        /*2-7-03查询文档关系详情[8503]   */

        omsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipDetail(queryUnstructuredRelationshipDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        omsUnstructuredDataRelationship_1 = omsUnstructuredDataRelationship;

        QueryUnstructuredRelationshipDetailComRespDto retData = new QueryUnstructuredRelationshipDetailComRespDto();
        if (omsUnstructuredDataRelationship_1 != null) {
            retData.setUnstructuredDataRelationshipId(omsUnstructuredDataRelationship_1.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:1823134_1
            retData.setUnstructuredDataId(omsUnstructuredDataRelationship_1.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1823135_1
            retData.setFileRelativePathAccess(omsUnstructuredDataRelationship_1.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1823136_1
            retData.setIsNetworkReference(omsUnstructuredDataRelationship_1.getIsNetworkReference());//SimpleFieldAssign//sourceId:1823137_1
        }


        return retData;
    }

    /**
     * 11111D2新增文档关系业务处理(公共)[9707]
     * gen by moon at 6/9/2024, 12:32:24 AM
     */
    @Trace(operationName = "11111D2新增文档关系业务处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddUnstructuredDataRelationshipBizProComRespDto addUnstructuredDataRelationshipBizProCom(AddUnstructuredDataRelationshipBizProComReqDto reqDto) {


        AddUnstructuredRelationshipComRespDto addUnstructuredRelationshipComRespDto_1 = null;
//步骤0: M2获取接收字段 - obtainReceiveFields
        //ModelCode: receptionService
        ObtainReceiveFieldsRespDto receptionServiceRes = null;
        ObtainReceiveFieldsReqDto receptionServiceReq = new ObtainReceiveFieldsReqDto();
        if (reqDto != null) {
            receptionServiceReq.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1838613_1
            receptionServiceReq.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1846109_1
            receptionServiceReq.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1846110_1
            receptionServiceReq.setSourceRelationshipId(reqDto.getSourceRelationshipId());//SimpleFieldAssign//sourceId:1838614_1
            receptionServiceReq.setRelationshipType(reqDto.getRelationshipType());//SimpleFieldAssign//sourceId:1838615_1
            receptionServiceReq.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1838617_1
            receptionServiceReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1838620_1
            receptionServiceReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1838621_1
            receptionServiceReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1838622_1
            receptionServiceReq.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1838624_1
            receptionServiceReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1854796_1
            receptionServiceReq.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1838626_1
            receptionServiceReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1838627_1
            receptionServiceReq.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1838629_1
            receptionServiceReq.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1838628_1
            receptionServiceReq.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1838630_1
            receptionServiceReq.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1846113_1
            receptionServiceReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1846114_1
        }

        /*M2获取接收字段[4007]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getUnstructuredDataId(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-文档ID不能为空", false);
        Assert.isNull(receptionServiceReq.getFileRelativePathAccess(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-文件相对路径地址不能为空", false);
        Assert.isNull(receptionServiceReq.getPostfix(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-文档后缀不能为空", false);
        Assert.isNull(receptionServiceReq.getDocUseSceneCode(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-文档应用业务场景不能为空", false);
        Assert.isNull(receptionServiceReq.getDocUseType(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-文档用途类型不能为空", false);
        Assert.isNull(receptionServiceReq.getUserId(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-归属个人账号ID不能为空", false);
        Assert.isNull(receptionServiceReq.getOwnTableTypeCode(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-归属内容表类型编码不能为空", false);
        Assert.isNull(receptionServiceReq.getOwnEntityId(), "11111D2新增文档关系业务处理(公共)-M2获取接收字段-归属内容表主键ID不能为空", false);
        receptionServiceRes = nbUnstructuredData.obtainReceiveFields(receptionServiceReq);


//步骤1: D2查询文档关系列表(公共) - queryUnstructuredRelationshipListCom
        QueryUnstructuredRelationshipListComRespDto queryUnstructuredRelationshipListComRespDto = null;
        QueryUnstructuredRelationshipListComReqDto queryUnstructuredRelationshipListComReqDto = new QueryUnstructuredRelationshipListComReqDto();
        queryUnstructuredRelationshipListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1846049_1
        if (reqDto != null) {
            queryUnstructuredRelationshipListComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1846042_1
            queryUnstructuredRelationshipListComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1846043_1
            queryUnstructuredRelationshipListComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1846045_1
            queryUnstructuredRelationshipListComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1846046_1
        }

        /*D2查当前内容文档关系列表（获取文档关系排序）[9270]   */
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getDocUseSceneCode(), "11111D2新增文档关系业务处理(公共)-D2查当前内容文档关系列表（获取文档关系排序）-文档应用业务场景不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getDocUseType(), "11111D2新增文档关系业务处理(公共)-D2查当前内容文档关系列表（获取文档关系排序）-文档用途类型不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getUserId(), "11111D2新增文档关系业务处理(公共)-D2查当前内容文档关系列表（获取文档关系排序）-归属个人账号ID不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getOwnEntityId(), "11111D2新增文档关系业务处理(公共)-D2查当前内容文档关系列表（获取文档关系排序）-归属内容表主键ID不能为空", false);
        Assert.isNull(queryUnstructuredRelationshipListComReqDto.getSpaceId(), "11111D2新增文档关系业务处理(公共)-D2查当前内容文档关系列表（获取文档关系排序）-创建于空间ID不能为空", false);
        queryUnstructuredRelationshipListComRespDto = queryUnstructuredRelationshipListCom(queryUnstructuredRelationshipListComReqDto)/*vcase invoke 同服务,同domain*/;


//步骤2: 1111D2执行分析文档关系排序(公共) - implementAnalyzeUnstructuredRelationshipSortCom
        ImplementAnalyzeUnstructuredRelationshipSortComRespDto implementAnalyzeUnstructuredRelationshipSortComRespDto = null;
        if (queryUnstructuredRelationshipListComRespDto != null) {
            ImplementAnalyzeUnstructuredRelationshipSortComReqDto implementAnalyzeUnstructuredRelationshipSortComReqDto = new ImplementAnalyzeUnstructuredRelationshipSortComReqDto();
            if (queryUnstructuredRelationshipListComRespDto != null && queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList() != null && !CollectionUtil.isEmpty(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList())) {
                implementAnalyzeUnstructuredRelationshipSortComReqDto.setUnstructuredRelationshipList(queryUnstructuredRelationshipListComRespDto.getUnstructuredRelationshipList().stream().map(item -> BeanUtil.toBean(item, UnstructuredRelationshipDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1845835_1
            }

            /*D2执行分析文档关系排序（用于新增文档关系）[9723]   */

            implementAnalyzeUnstructuredRelationshipSortComRespDto = implementAnalyzeUnstructuredRelationshipSortCom(implementAnalyzeUnstructuredRelationshipSortComReqDto)/*vcase invoke 同服务,同domain*/;


        }

//步骤3: D2新增文档关系(公共) - addUnstructuredRelationshipCom
        AddUnstructuredRelationshipComRespDto addUnstructuredRelationshipComRespDto = null;
        if (implementAnalyzeUnstructuredRelationshipSortComRespDto != null) {
            AddUnstructuredRelationshipComReqDto addUnstructuredRelationshipComReqDto = new AddUnstructuredRelationshipComReqDto();
            addUnstructuredRelationshipComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1843194_1
            addUnstructuredRelationshipComReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1843195_1
            if (reqDto != null) {
                addUnstructuredRelationshipComReqDto.setUnstructuredDataId(reqDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1843175_1
                addUnstructuredRelationshipComReqDto.setFileRelativePathAccess(reqDto.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1843176_1
                addUnstructuredRelationshipComReqDto.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1843177_1
                addUnstructuredRelationshipComReqDto.setSourceRelationshipId(reqDto.getSourceRelationshipId());//SimpleFieldAssign//sourceId:1843178_1
                addUnstructuredRelationshipComReqDto.setRelationshipType(reqDto.getRelationshipType());//SimpleFieldAssign//sourceId:1843179_1
                addUnstructuredRelationshipComReqDto.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1843180_1
                addUnstructuredRelationshipComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1843181_1
                addUnstructuredRelationshipComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1843182_1
                addUnstructuredRelationshipComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1843183_1
                addUnstructuredRelationshipComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1843184_1
                addUnstructuredRelationshipComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1843185_1
                addUnstructuredRelationshipComReqDto.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1843186_1
                addUnstructuredRelationshipComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1843187_1
                addUnstructuredRelationshipComReqDto.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1843188_1
                addUnstructuredRelationshipComReqDto.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1843189_1
                addUnstructuredRelationshipComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1843190_1
                addUnstructuredRelationshipComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1843191_1
                addUnstructuredRelationshipComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1843192_1
            }
            if (implementAnalyzeUnstructuredRelationshipSortComRespDto != null) {
                addUnstructuredRelationshipComReqDto.setOrderNumber(implementAnalyzeUnstructuredRelationshipSortComRespDto.getOrderNumber());//SimpleFieldAssign//sourceId:1843193_1
            }

            /*D2新增文档关系(公共)[9704]   */
            Assert.isNull(addUnstructuredRelationshipComReqDto.getUnstructuredDataId(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-文档ID不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getFileRelativePathAccess(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-文件相对路径地址不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getPostfix(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-文档后缀不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getRelationshipType(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-关系类型编码不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getDocUseSceneCode(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-文档应用业务场景不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getDocUseType(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-文档用途类型不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getUserId(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-归属个人账号ID不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getOwnTableTypeCode(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-归属内容表类型编码不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getOwnEntityId(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-归属内容表主键ID不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getOrderNumber(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-排序不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getSpaceId(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-创建于空间ID不能为空", false);
            Assert.isNull(addUnstructuredRelationshipComReqDto.getAppId(), "11111D2新增文档关系业务处理(公共)-D2新增文档关系(公共)-创建于联盟应用ID不能为空", false);
            addUnstructuredRelationshipComRespDto = addUnstructuredRelationshipCom(addUnstructuredRelationshipComReqDto)/*vcase invoke 同服务,同domain*/;


            addUnstructuredRelationshipComRespDto_1 = addUnstructuredRelationshipComRespDto;
        }

        AddUnstructuredDataRelationshipBizProComRespDto retData = new AddUnstructuredDataRelationshipBizProComRespDto();
        if (addUnstructuredRelationshipComRespDto_1 != null) {
            retData.setUnstructuredDataRelationshipId(addUnstructuredRelationshipComRespDto_1.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:1839279_1
        }


        return retData;
    }

    /**
     * 1111D2执行分析文档关系排序(公共)[9723]
     * gen by moon at 6/9/2024, 12:32:11 AM
     */
    @Trace(operationName = "1111D2执行分析文档关系排序(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAnalyzeUnstructuredRelationshipSortComRespDto implementAnalyzeUnstructuredRelationshipSortCom(ImplementAnalyzeUnstructuredRelationshipSortComReqDto reqDto) {


        ObtainReceiveFieldsRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getUnstructuredRelationshipList() != null && reqDto.getUnstructuredRelationshipList().size() > 0)) {
            //if(D2执行分析文档关系排序(公共).文档关系列表数据集条数 大于 0)  69534

            ImplementMaxOfCollectionsAddOneComRespDto implementMaxOfCollectionsAddOneComRespDto = null;
            ImplementMaxOfCollectionsAddOneComReqDto implementMaxOfCollectionsAddOneComReqDto = new ImplementMaxOfCollectionsAddOneComReqDto();
            if (reqDto != null && reqDto.getUnstructuredRelationshipList() != null && !CollectionUtil.isEmpty(reqDto.getUnstructuredRelationshipList())) {
                implementMaxOfCollectionsAddOneComReqDto.setMaxOfMultipleNumList(reqDto.getUnstructuredRelationshipList().stream().map(item -> item.getOrderNumber())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1845752_1_69535
            }

            /*D2执行取数据集最大值加一(公共)[9706]   */

            implementMaxOfCollectionsAddOneComRespDto = divineDataService.implementMaxOfCollectionsAddOneCom(implementMaxOfCollectionsAddOneComReqDto)/*vcase invoke isSameApp*/;


//ModelCode: receptionService
            ObtainReceiveFieldsRespDto receptionServiceRes = null;
            if (implementMaxOfCollectionsAddOneComRespDto != null) {
                ObtainReceiveFieldsReqDto receptionServiceReq = new ObtainReceiveFieldsReqDto();
                if (implementMaxOfCollectionsAddOneComRespDto != null) {
                    receptionServiceReq.setOrderNumber(implementMaxOfCollectionsAddOneComRespDto.getOrderNumber());//SimpleFieldAssign//sourceId:1845591_1_69536
                }

                /*M2-接收出参字段：排序[4007]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getOrderNumber(), "1111D2执行分析文档关系排序(公共)-M2-接收出参字段：排序-排序不能为空", false);
                receptionServiceRes = nbUnstructuredData.obtainReceiveFields(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
            }
        } else if ((reqDto != null && reqDto.getUnstructuredRelationshipList() != null && reqDto.getUnstructuredRelationshipList().size() == 0)) {
            //elseif(D2执行分析文档关系排序(公共).文档关系列表数据集条数 等于 0)  69537

//ModelCode: receptionService
            ObtainReceiveFieldsRespDto receptionServiceRes_2 = null;
            ObtainReceiveFieldsReqDto receptionServiceReq_1 = new ObtainReceiveFieldsReqDto();
            receptionServiceReq_1.setComNumField(Long.valueOf(1));//CUSTOM_CONVENTION//sourceId:1845579_1_69538

            /*M2-约定排序：1[4007]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_1.getComNumField(), "1111D2执行分析文档关系排序(公共)-M2-约定排序：1-通用数值字段（整数型）不能为空", false);
            receptionServiceRes_2 = nbUnstructuredData.obtainReceiveFields(receptionServiceReq_1);


//ModelCode: receptionService
            ObtainReceiveFieldsRespDto receptionServiceRes_4 = null;
            ObtainReceiveFieldsReqDto receptionServiceReq_2 = new ObtainReceiveFieldsReqDto();
            if (receptionServiceRes_2 != null) {
                receptionServiceReq_2.setOrderNumber(receptionServiceRes_2.getComNumField());//SimpleFieldAssign//sourceId:1845591_1_69539
            }

            /*M2-接收出参字段：排序[4007]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_2.getOrderNumber(), "1111D2执行分析文档关系排序(公共)-M2-接收出参字段：排序-排序不能为空", false);
            receptionServiceRes_4 = nbUnstructuredData.obtainReceiveFields(receptionServiceReq_2);


            receptionServiceRes_1 = receptionServiceRes_4;
        }
        ImplementAnalyzeUnstructuredRelationshipSortComRespDto retData = new ImplementAnalyzeUnstructuredRelationshipSortComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setOrderNumber(receptionServiceRes_1.getOrderNumber());//SimpleFieldAssign//sourceId:1845834_1
        }


        return retData;
    }

    /**
     * 11111D2执行循环增文档关系(公共)[9720]
     * gen by moon at 6/9/2024, 12:32:30 AM
     */
    @Trace(operationName = "11111D2执行循环增文档关系(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementLoopAddUnstructuredRelationshipComRespDto implementLoopAddUnstructuredRelationshipCom(ImplementLoopAddUnstructuredRelationshipComReqDto reqDto) {


        if ((reqDto != null && reqDto.getUnstructuredRelationshipList() != null && reqDto.getUnstructuredRelationshipList().size() > 0)) {
            //if(D2执行循环增文档关系(公共).文档关系列表数据集条数 大于 0)  69524

//ModelCode: circulationCollections
            for (UnstructuredRelationshipDto circulationCollectionsRes : reqDto.getUnstructuredRelationshipList()) {

                AddUnstructuredDataRelationshipBizProComRespDto addUnstructuredDataRelationshipBizProComRespDto = null;
                AddUnstructuredDataRelationshipBizProComReqDto addUnstructuredDataRelationshipBizProComReqDto = new AddUnstructuredDataRelationshipBizProComReqDto();
                if (circulationCollectionsRes != null) {
                    addUnstructuredDataRelationshipBizProComReqDto.setUnstructuredDataId(circulationCollectionsRes.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1846068_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setFileRelativePathAccess(circulationCollectionsRes.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1846117_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setPostfix(circulationCollectionsRes.getPostfix());//SimpleFieldAssign//sourceId:1846118_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setSourceRelationshipId(circulationCollectionsRes.getSourceRelationshipId());//SimpleFieldAssign//sourceId:1846069_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setRelationshipType(circulationCollectionsRes.getRelationshipType());//SimpleFieldAssign//sourceId:1846070_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setIsNetworkReference(circulationCollectionsRes.getIsNetworkReference());//SimpleFieldAssign//sourceId:1846071_1_69550
                }
                if (reqDto != null) {
                    addUnstructuredDataRelationshipBizProComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1846072_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1846073_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1846074_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1846075_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1854800_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1846076_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1846077_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1846078_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1846079_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1846080_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1846119_1_69550
                    addUnstructuredDataRelationshipBizProComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1846120_1_69550
                }

                /*11111D2新增文档关系业务处理(公共)[9707]   */
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getUnstructuredDataId(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-文档ID不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getFileRelativePathAccess(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-文件相对路径地址不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getPostfix(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-文档后缀不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getDocUseSceneCode(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-文档应用业务场景不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getDocUseType(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-文档用途类型不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getUserId(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-归属个人账号ID不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getOwnTableTypeCode(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-归属内容表类型编码不能为空", false);
                Assert.isNull(addUnstructuredDataRelationshipBizProComReqDto.getOwnEntityId(), "11111D2执行循环增文档关系(公共)-11111D2新增文档关系业务处理(公共)-归属内容表主键ID不能为空", false);
                addUnstructuredDataRelationshipBizProComRespDto = addUnstructuredDataRelationshipBizProCom(addUnstructuredDataRelationshipBizProComReqDto)/*vcase invoke 同服务,同domain*/;


//ModelCode: circulationEnd
            }

        }
        ImplementLoopAddUnstructuredRelationshipComRespDto retData = new ImplementLoopAddUnstructuredRelationshipComRespDto();


        return retData;
    }

    /**
     * D2批量增文档关系业务处理(公共)[9754]
     * gen by moon at 6/7/2024, 7:13:16 PM
     */
    @Trace(operationName = "D2批量增文档关系业务处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchAddUnstructuredDataRelationshipBizProComRespDto batchAddUnstructuredDataRelationshipBizProCom(BatchAddUnstructuredDataRelationshipBizProComReqDto reqDto) {


        //virtualUsage D2批量删文档关系或文档(公共)  69741
        BatchDeleteDocRelOrDocComRespDto batchDeleteDocRelOrDocComRespDto = null;
        BatchDeleteDocRelOrDocComReqDto batchDeleteDocRelOrDocComReqDto = new BatchDeleteDocRelOrDocComReqDto();
        batchDeleteDocRelOrDocComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1854755_1_69741
        if (reqDto != null) {
            batchDeleteDocRelOrDocComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1854747_1_69741
            batchDeleteDocRelOrDocComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1854748_1_69741
            batchDeleteDocRelOrDocComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1854750_1_69741
            batchDeleteDocRelOrDocComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1854751_1_69741
            batchDeleteDocRelOrDocComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1854753_1_69741
            batchDeleteDocRelOrDocComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1854754_1_69741
        }

        /*D2批量删文档关系或文档(公共)[9755]   */
        Assert.isNull(batchDeleteDocRelOrDocComReqDto.getDocUseSceneCode(), "D2批量增文档关系业务处理(公共)-D2批量删文档关系或文档(公共)-文档应用业务场景不能为空", false);
        Assert.isNull(batchDeleteDocRelOrDocComReqDto.getDocUseType(), "D2批量增文档关系业务处理(公共)-D2批量删文档关系或文档(公共)-文档用途类型不能为空", false);
        Assert.isNull(batchDeleteDocRelOrDocComReqDto.getSpaceId(), "D2批量增文档关系业务处理(公共)-D2批量删文档关系或文档(公共)-创建于空间ID不能为空", false);
        batchDeleteDocRelOrDocComRespDto = batchDeleteDocRelOrDocCom(batchDeleteDocRelOrDocComReqDto)/*vcase invoke 同服务,同domain*/;


        if ((reqDto != null && reqDto.getUnstructuredRelationshipList() != null && reqDto.getUnstructuredRelationshipList().size() > 0)) {
            //if(D2批量增文档关系业务处理(公共).文档关系列表数据集条数 大于 0)  69742

            ImplementLoopAddUnstructuredRelationshipComRespDto implementLoopAddUnstructuredRelationshipComRespDto = null;
            ImplementLoopAddUnstructuredRelationshipComReqDto implementLoopAddUnstructuredRelationshipComReqDto = new ImplementLoopAddUnstructuredRelationshipComReqDto();
            if (reqDto != null) {
                implementLoopAddUnstructuredRelationshipComReqDto.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1854757_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1854758_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1854765_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setOwnWorkCycleId(reqDto.getOwnWorkCycleId());//SimpleFieldAssign//sourceId:1854759_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1854803_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setOwnTableTypeCode(reqDto.getOwnTableTypeCode());//SimpleFieldAssign//sourceId:1854760_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1854761_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setOwnParentContentTypeCode(reqDto.getOwnParentContentTypeCode());//SimpleFieldAssign//sourceId:1854762_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setOwnParentContentCode(reqDto.getOwnParentContentCode());//SimpleFieldAssign//sourceId:1854763_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1854764_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1854766_1_69743
                implementLoopAddUnstructuredRelationshipComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1854767_1_69743
            }
            if (reqDto != null && reqDto.getUnstructuredRelationshipList() != null && !CollectionUtil.isEmpty(reqDto.getUnstructuredRelationshipList())) {
                implementLoopAddUnstructuredRelationshipComReqDto.setUnstructuredRelationshipList(reqDto.getUnstructuredRelationshipList().stream().map(item -> BeanUtil.toBean(item, UnstructuredRelationshipDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1854756_1_69743
            }

            /*D2执行循环增文档关系(公共)[9720]   */
            Assert.isNull(implementLoopAddUnstructuredRelationshipComReqDto.getDocUseSceneCode(), "D2批量增文档关系业务处理(公共)-D2执行循环增文档关系(公共)-文档应用业务场景不能为空", false);
            Assert.isNull(implementLoopAddUnstructuredRelationshipComReqDto.getDocUseType(), "D2批量增文档关系业务处理(公共)-D2执行循环增文档关系(公共)-文档用途类型不能为空", false);
            Assert.isNull(implementLoopAddUnstructuredRelationshipComReqDto.getUserId(), "D2批量增文档关系业务处理(公共)-D2执行循环增文档关系(公共)-归属个人账号ID不能为空", false);
            Assert.isNull(implementLoopAddUnstructuredRelationshipComReqDto.getOwnTableTypeCode(), "D2批量增文档关系业务处理(公共)-D2执行循环增文档关系(公共)-归属内容类型编码不能为空", false);
            Assert.isNull(implementLoopAddUnstructuredRelationshipComReqDto.getOwnEntityId(), "D2批量增文档关系业务处理(公共)-D2执行循环增文档关系(公共)-归属内容主键ID不能为空", false);
            implementLoopAddUnstructuredRelationshipComRespDto = implementLoopAddUnstructuredRelationshipCom(implementLoopAddUnstructuredRelationshipComReqDto)/*vcase invoke 同服务,同domain*/;


        }
        BatchAddUnstructuredDataRelationshipBizProComRespDto retData = new BatchAddUnstructuredDataRelationshipBizProComRespDto();


        return retData;
    }

    /**
     * D2批量删文档关系或文档(公共)[9755]
     * gen by moon at 7/17/2024, 6:44:04 PM
     */
    @Trace(operationName = "D2批量删文档关系或文档(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchDeleteDocRelOrDocComRespDto batchDeleteDocRelOrDocCom(BatchDeleteDocRelOrDocComReqDto reqDto) {


        //virtualUsage 2-7-03查询文档关系列表  69736
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        QueryUnstructuredRelationshipListReq queryUnstructuredRelationshipListReq = new QueryUnstructuredRelationshipListReq();
        if (reqDto != null) {
            queryUnstructuredRelationshipListReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1854721_1_69736
            queryUnstructuredRelationshipListReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1854720_1_69736
            queryUnstructuredRelationshipListReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1854723_1_69736
            queryUnstructuredRelationshipListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1854724_1_69736
            queryUnstructuredRelationshipListReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1854718_1_69736
            queryUnstructuredRelationshipListReq.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1854725_1_69736
            queryUnstructuredRelationshipListReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1854726_1_69736
            queryUnstructuredRelationshipListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1854719_1_69736
        }

        /*2-7-03查询文档关系列表[8505]   */
        Assert.isNull(queryUnstructuredRelationshipListReq.getSpaceId(), "D2批量删文档关系或文档(公共)-2-7-03查询文档关系列表-创建于空间ID不能为空", false);
        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipList(queryUnstructuredRelationshipListReq)/*vcase invoke 本地 method 方法调用;*/;


        if (((new ArrayList<>()).size() > 0)) {
            //if(2-7-03查询文档关系列表.文档关系列表数据集条数 大于 0)  69737

//ModelCode: circulationCollections
            for (OmsUnstructuredDataRelationship circulationCollectionsRes : listOmsUnstructuredDataRelationship) {

                DeleteSingleDocRelOrDocComRespDto deleteSingleDocRelOrDocComRespDto = null;
                DeleteSingleDocRelOrDocComReqDto deleteSingleDocRelOrDocComReqDto = new DeleteSingleDocRelOrDocComReqDto();
                deleteSingleDocRelOrDocComReqDto.setIsCleanPersonalInvalidDocument("TRUE");//sourceId:1934737_1_69740
                if (circulationCollectionsRes != null) {
                    deleteSingleDocRelOrDocComReqDto.setUnstructuredDataId(circulationCollectionsRes.getUnstructuredDataId());//SimpleFieldAssign//sourceId:1854703_1_69740
                    deleteSingleDocRelOrDocComReqDto.setFileStorageRootPath(circulationCollectionsRes.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:1854706_1_69740
                }
                if (reqDto != null) {
                    deleteSingleDocRelOrDocComReqDto.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1854705_1_69740
                    deleteSingleDocRelOrDocComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1854704_1_69740
                }

                /*D2删除单个文档关系或文档(公共)[8790]   */
                Assert.isNull(deleteSingleDocRelOrDocComReqDto.getIsCleanPersonalInvalidDocument(), "D2批量删文档关系或文档(公共)-D2删除单个文档关系或文档(公共)-是否清理个人无效文档不能为空", false);
                Assert.isNull(deleteSingleDocRelOrDocComReqDto.getUnstructuredDataId(), "D2批量删文档关系或文档(公共)-D2删除单个文档关系或文档(公共)-文档ID不能为空", false);
                Assert.isNull(deleteSingleDocRelOrDocComReqDto.getFileStorageRootPath(), "D2批量删文档关系或文档(公共)-D2删除单个文档关系或文档(公共)-文件存储根路径不能为空", false);
                Assert.isNull(deleteSingleDocRelOrDocComReqDto.getOwnEntityId(), "D2批量删文档关系或文档(公共)-D2删除单个文档关系或文档(公共)-归属内容表主键ID不能为空", false);
                Assert.isNull(deleteSingleDocRelOrDocComReqDto.getSpaceId(), "D2批量删文档关系或文档(公共)-D2删除单个文档关系或文档(公共)-创建于空间ID不能为空", false);
                deleteSingleDocRelOrDocComRespDto = deleteSingleDocRelOrDocCom(deleteSingleDocRelOrDocComReqDto)/*vcase invoke 同服务,同domain*/;


//ModelCode: circulationEnd
            }

        }
        BatchDeleteDocRelOrDocComRespDto retData = new BatchDeleteDocRelOrDocComRespDto();


        return retData;
    }

    /**
     * D2执行校验文档数据集合法性(公共)[9789]
     * gen by moon at 6/12/2024, 11:02:09 PM
     */
    @Trace(operationName = "D2执行校验文档数据集合法性(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementCheckDocListValidityComRespDto implementCheckDocListValidityCom(ImplementCheckDocListValidityComReqDto reqDto) {


        if ((reqDto != null && reqDto.getDocumentList() != null && reqDto.getDocumentList().size() > 0)) {
            //if(D2执行校验文档数据集合法性(公共).文档列表数据集条数 大于 0)  69916

//ModelCode: circulationCollections
            for (DocumentDto circulationCollectionsRes : reqDto.getDocumentList()) {

                if ((circulationCollectionsRes != null && circulationCollectionsRes.getUnstructuredDataId() == null || circulationCollectionsRes != null && circulationCollectionsRes.getFileRelativePathAccess() == null || circulationCollectionsRes != null && circulationCollectionsRes.getPostfix() == null)) {
                    //if((M2执行文档【循环开始】.文档ID 值等于空  or M2执行文档【循环开始】.文件相对路径地址 值等于空  or M2执行文档【循环开始】.文档后缀 值等于空 ))  69919

//异常结束 69921
                    throw new BizException("2220300453", "对不起，文档信息不完整，创建文档关系失败~", false);
                }
                if ((circulationCollectionsRes != null && circulationCollectionsRes.getRelationshipType() != null && circulationCollectionsRes.getRelationshipType().equals("INDIRECT_RELATIONSHIP") && circulationCollectionsRes != null && circulationCollectionsRes.getSourceRelationshipId() == null)) {
                    //if((M2执行文档【循环开始】.关系类型编码 等于 间接关系 and M2执行文档【循环开始】.来源文档关系ID 值等于空 ))  69923

//异常结束 69924
                    throw new BizException("2220300454", "对不起，来源文档关系ID错误，创建文档关系失败 ~", false);
                }
//ModelCode: circulationEnd
            }

        }
        ImplementCheckDocListValidityComRespDto retData = new ImplementCheckDocListValidityComRespDto();


        return retData;
    }

    /**
     * D2批量查询文档关系实例by归属工作周期ID(公共)[10014]
     * gen by moon at 8/6/2024, 12:29:25 AM
     */
    @Trace(operationName = "D2批量查询文档关系实例by归属工作周期ID(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryUnstructuredRelationshipInstanceComRespDto batchQueryUnstructuredRelationshipInstanceCom(BatchQueryUnstructuredRelationshipInstanceComReqDto reqDto) {


        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_1 = new ArrayList<>();
        List<OmsUnstructuredData> listOmsUnstructuredData_1 = new ArrayList<>();
//virtualUsage 2-7-03批量查询文档关系by归属工作周期ID  71827
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        BatchQueryUnstructuredRelationshipByOwnWorkCycleIdReq batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq = new BatchQueryUnstructuredRelationshipByOwnWorkCycleIdReq();
        if (reqDto != null) {
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setUnstructuredRelationshipList(reqDto.getUnstructuredRelationshipList());//list-field-assign//sourceId:1946551_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1956091_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1946552_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1946553_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:1946554_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:1946555_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1946556_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1957460_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1946557_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setOwnEntityId(reqDto.getOwnEntityId());//SimpleFieldAssign//sourceId:1946558_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setOwnParentContentId(reqDto.getOwnParentContentId());//SimpleFieldAssign//sourceId:1946559_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1946560_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setCreateInductionId(reqDto.getCreateInductionId());//SimpleFieldAssign//sourceId:1956077_1_71827
            batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1946561_1_71827
        }

        /*2-7-03批量查询文档关系by归属工作周期ID[10015]   */

        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.batchQueryUnstructuredRelationshipByOwnWorkCycleId(batchQueryUnstructuredRelationshipByOwnWorkCycleIdReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataRelationship_1 = listOmsUnstructuredDataRelationship;
        if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() > 0)) {
            //if(2-7-03批量查询文档关系by归属工作周期ID.文档关系列表数据集条数 大于 0)  71824

            List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
            if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship.size() > 0) {
                BatchQueryDocumentReq batchQueryDocumentReq = new BatchQueryDocumentReq();
                if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship)) {
                    batchQueryDocumentReq.setDocumentList(listOmsUnstructuredDataRelationship.stream().map(item -> item.getUnstructuredDataId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1946520_1_71825
                }
                if (reqDto != null) {
                    batchQueryDocumentReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1946522_1_71825
                }

                /*2-7-01批量查询文档列表By文档id[2669]   */

                listOmsUnstructuredData = mOmsUnstructuredDataService.batchQueryDocument(batchQueryDocumentReq)/*vcase invoke 本地 method 方法调用;*/;


                listOmsUnstructuredData_1 = listOmsUnstructuredData;
            }
        }
        BatchQueryUnstructuredRelationshipInstanceComRespDto retData = new BatchQueryUnstructuredRelationshipInstanceComRespDto();
        //数据集融合  MoreListToOneSource
        if (listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1) && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1)) {
            for (OmsUnstructuredDataRelationship omsUnstructuredDataRelationship : listOmsUnstructuredDataRelationship_1) {
                DocumentDto retElm = new DocumentDto();
                retElm.setUnstructuredDataRelationshipId(omsUnstructuredDataRelationship.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:399668_2
                retElm.setOwnEntityId(omsUnstructuredDataRelationship.getOwnEntityId());//SimpleFieldAssign//sourceId:399661_2
                retElm.setOwnParentContentId(omsUnstructuredDataRelationship.getOwnParentContentId());//SimpleFieldAssign//sourceId:399662_2
                retElm.setThemeContentId(omsUnstructuredDataRelationship.getThemeContentId());//SimpleFieldAssign//sourceId:399663_2
                retElm.setCopyrightObjectTypeCode(omsUnstructuredDataRelationship.getCopyrightObjectTypeCode());//SimpleFieldAssign//sourceId:399664_2
                retElm.setCopyrightObjectId(omsUnstructuredDataRelationship.getCopyrightObjectId());//SimpleFieldAssign//sourceId:399665_2
                retData.getDocumentList().add(retElm);
                if (listOmsUnstructuredData_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredData_1)) {
                    for (OmsUnstructuredData omsUnstructuredData : listOmsUnstructuredData_1) {
                        if (omsUnstructuredData.getUnstructuredDataId().equals(omsUnstructuredDataRelationship.getUnstructuredDataId())) {
                            retElm.setUnstructuredDataId(omsUnstructuredData.getUnstructuredDataId());//SimpleFieldAssign//sourceId:397927_2
                            retElm.setUnstructuredDataType(omsUnstructuredData.getUnstructuredDataType());//SimpleFieldAssign//sourceId:397928_2
                            retElm.setUnstructuredDataDetailType(omsUnstructuredData.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:397929_2
                            retElm.setIsSupportPreview(omsUnstructuredData.getIsSupportPreview());//SimpleFieldAssign//sourceId:397930_2
                            retElm.setIsUserUpload(omsUnstructuredData.getIsUserUpload());//SimpleFieldAssign//sourceId:397931_2
                            retElm.setUnstructuredDataFolderId(omsUnstructuredData.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:397932_2
                            retElm.setFileRelativePathAccess(omsUnstructuredData.getFileRelativePathAccess());//SimpleFieldAssign//sourceId:397933_2
                            retElm.setFileRelativeAllPathAccess(CommonFunctionHelper.getFilePath(omsUnstructuredData.getFileRelativePathAccess()));//SimpleFieldAssign//sourceId:397933_2
                            retElm.setPostfix(omsUnstructuredData.getPostfix());//SimpleFieldAssign//sourceId:397934_2
                            retElm.setFileSize(omsUnstructuredData.getFileSize());//SimpleFieldAssign//sourceId:397935_2
                            retElm.setUnstructuredDataNumber(omsUnstructuredData.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:397936_2
                            retElm.setUnstructuredDataName(omsUnstructuredData.getUnstructuredDataName());//SimpleFieldAssign//sourceId:397937_2
                            retElm.setUnstructuredDataDesc(omsUnstructuredData.getUnstructuredDataDesc());//SimpleFieldAssign//sourceId:397938_2
                            retElm.setCreateInductionId(omsUnstructuredData.getCreateInductionId());//SimpleFieldAssign//sourceId:397939_2
                            retElm.setCreateTime(omsUnstructuredData.getCreateTime());//SimpleFieldAssign//sourceId:397942_2
                        }
                    }
                }

            }
        }//sourceId:1946525_1


        return retData;
    }

    /**
     * D2执行文档关系补偿文档名称(公共)[10053]
     * gen by moon at 7/25/2024, 10:16:44 PM
     */
    @Trace(operationName = "D2执行文档关系补偿文档名称(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementUnstructuredRelationshipCompDocNameComRespDto implementUnstructuredRelationshipCompDocNameCom(ImplementUnstructuredRelationshipCompDocNameComReqDto reqDto) {


        if ((reqDto != null && reqDto.getDocumentList() != null && reqDto.getDocumentList().size() > 0)) {
            //if(D2执行文档关系补偿文档名称(公共).文档列表数据集条数 大于 0)  71981

//ModelCode: circulationCollections
            for (String circulationCollectionsRes : reqDto.getDocumentList()) {

                OmsUnstructuredData omsUnstructuredData = null;
                QueryDocumentDetailReq queryDocumentDetailReq = new QueryDocumentDetailReq();
                if (circulationCollectionsRes != null) {
                    queryDocumentDetailReq.setUnstructuredDataId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1956380_1_71986
                }
                if (reqDto != null) {
                    queryDocumentDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1956381_1_71986
                }

                /*2-7-01查询文档详情[3169]   */
                Assert.isNull(queryDocumentDetailReq.getUnstructuredDataId(), "D2执行文档关系补偿文档名称(公共)-2-7-01查询文档详情-文档ID不能为空", false);
                Assert.isNull(queryDocumentDetailReq.getSpaceId(), "D2执行文档关系补偿文档名称(公共)-2-7-01查询文档详情-创建于空间ID不能为空", false);
                omsUnstructuredData = mOmsUnstructuredDataService.queryDocumentDetail(queryDocumentDetailReq)/*vcase invoke 本地 method 方法调用;*/;


                List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
                QueryUnstructuredRelationshipListReq queryUnstructuredRelationshipListReq = new QueryUnstructuredRelationshipListReq();
                if (circulationCollectionsRes != null) {
                    queryUnstructuredRelationshipListReq.setUnstructuredDataId(circulationCollectionsRes);//SimpleFieldAssign//sourceId:1956400_1_71985
                }
                if (reqDto != null) {
                    queryUnstructuredRelationshipListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1956401_1_71985
                }

                /*2-7-03查询文档关系列表[8505]   */
                Assert.isNull(queryUnstructuredRelationshipListReq.getUnstructuredDataId(), "D2执行文档关系补偿文档名称(公共)-2-7-03查询文档关系列表-文档ID不能为空", false);
                Assert.isNull(queryUnstructuredRelationshipListReq.getSpaceId(), "D2执行文档关系补偿文档名称(公共)-2-7-03查询文档关系列表-创建于空间ID不能为空", false);
                listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.queryUnstructuredRelationshipList(queryUnstructuredRelationshipListReq)/*vcase invoke 本地 method 方法调用;*/;


                if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() > 0)) {
                    //if(2-7-03查询文档关系列表.文档关系列表数据集条数 大于 0)  71987

                    boolean bOOLEAN;
                    if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship.size() > 0 && omsUnstructuredData != null) {
                        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_2 = new ArrayList<>();
                        if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship)) {
                            OmsUnstructuredData finalOmsUnstructuredData = omsUnstructuredData;
                            listOmsUnstructuredDataRelationship_2 = //objList-to-objLists
                                    listOmsUnstructuredDataRelationship.stream().map(item -> {
                                        OmsUnstructuredDataRelationship elm = new OmsUnstructuredDataRelationship();
                                        elm.setUnstructuredDataRelationshipId(item.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:401665_2_71988
                                        elm.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:401667_2_71988
                                        elm.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:401668_2_71988
                                        if (finalOmsUnstructuredData != null) {
                                            elm.setUnstructuredDataName(finalOmsUnstructuredData.getUnstructuredDataName());//两个数组关联数量不一致; 导致逐个赋值; 有概率付错值; //SimpleFieldAssign//sourceId:401666_2_71988
                                        }
                                        return elm;
                                    }).collect(Collectors.toList());//objList-to-objLists//sourceId:1956403_1_71988
                        }

                        /*2-7-03批量改文档关系[10054]   */

                        bOOLEAN = mOmsUnstructuredDataRelationshipService.batchUpdateUnstructuredRelationship(listOmsUnstructuredDataRelationship_2)/*vcase invoke 本地 method 方法调用;*/;


                    }
                }
//ModelCode: circulationEnd
            }

        }
        ImplementUnstructuredRelationshipCompDocNameComRespDto retData = new ImplementUnstructuredRelationshipCompDocNameComRespDto();


        return retData;
    }

    /**
     * D2查询文档列表(公共)[10056]
     * gen by moon at 7/25/2024, 9:39:53 PM
     */
    @Trace(operationName = "D2查询文档列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDocumentListComRespDto queryDocumentListCom(QueryDocumentListComReqDto reqDto) {


        List<OmsUnstructuredData> listOmsUnstructuredData_1 = new ArrayList<>();
//步骤0: 2-7-01查询文档列表 - queryDocumentList
        List<OmsUnstructuredData> listOmsUnstructuredData = new ArrayList<>();
        QueryDocumentListReq queryDocumentListReq = new QueryDocumentListReq();
        if (reqDto != null) {
            queryDocumentListReq.setUnstructuredDataFolderId(reqDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:1956407_1
            queryDocumentListReq.setUnstructuredDataType(reqDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:1956409_1
            queryDocumentListReq.setPostfix(reqDto.getPostfix());//SimpleFieldAssign//sourceId:1956410_1
            queryDocumentListReq.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1956411_1
            queryDocumentListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1956408_1
        }

        /*2-7-01查询文档列表[8821]   */
        Assert.isNull(queryDocumentListReq.getSpaceId(), "D2查询文档列表(公共)-2-7-01查询文档列表-创建于空间ID不能为空", false);
        listOmsUnstructuredData = mOmsUnstructuredDataService.queryDocumentList(queryDocumentListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredData_1 = listOmsUnstructuredData;

        QueryDocumentListComRespDto retData = new QueryDocumentListComRespDto();
        retData.setDocumentList(listOmsUnstructuredData_1.stream().map(item -> BeanUtil.toBean(item, DocumentDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1956417_1


        return retData;
    }

    /**
     * D2批量查询文档关系实例by归属内容表主键(公共)[10083]
     * gen by moon at 12/10/2024, 4:12:11 PM
     */
    @Trace(operationName = "D2批量查询文档关系实例by归属内容表主键(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto batchQueryUnstructuredRelationshipInstanceByOwnEntityIdCom(BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComReqDto reqDto) {


        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship_1 = new ArrayList<>();
        BatchQueryDocumentComRespDto batchQueryDocumentComRespDto_1 = null;
//virtualUsage 2-7-03批量查询文档关系By归属内容表主键id  72054
        List<OmsUnstructuredDataRelationship> listOmsUnstructuredDataRelationship = new ArrayList<>();
        BatchQueryDmAttRelaReq batchQueryDmAttRelaReq = new BatchQueryDmAttRelaReq();
        if (reqDto != null) {
            batchQueryDmAttRelaReq.setUnstructuredRelationshipList(reqDto.getUnstructuredRelationshipList());//list-field-assign//sourceId:1962839_1_72054
            batchQueryDmAttRelaReq.setUnstructuredDataName(reqDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:1962841_1_72054
            batchQueryDmAttRelaReq.setIsNetworkReference(reqDto.getIsNetworkReference());//SimpleFieldAssign//sourceId:1962842_1_72054
            batchQueryDmAttRelaReq.setIsResult(reqDto.getIsResult());//SimpleFieldAssign//sourceId:1962843_1_72054
            batchQueryDmAttRelaReq.setIsSymbolicAchievements(reqDto.getIsSymbolicAchievements());//SimpleFieldAssign//sourceId:1962845_1_72054
            batchQueryDmAttRelaReq.setDocUseSceneCode(reqDto.getDocUseSceneCode());//SimpleFieldAssign//sourceId:2036164_1_72054
            batchQueryDmAttRelaReq.setDocUseType(reqDto.getDocUseType());//SimpleFieldAssign//sourceId:2036165_1_72054
            batchQueryDmAttRelaReq.setCopyrightObjectId(reqDto.getCopyrightObjectId());//SimpleFieldAssign//sourceId:1962844_1_72054
            batchQueryDmAttRelaReq.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:2036166_1_72054
            batchQueryDmAttRelaReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1962846_1_72054
        }

        /*2-7-03批量查询文档关系By归属内容表主键id[8832]   */

        listOmsUnstructuredDataRelationship = mOmsUnstructuredDataRelationshipService.batchQueryDmAttRela(batchQueryDmAttRelaReq)/*vcase invoke 本地 method 方法调用;*/;


        listOmsUnstructuredDataRelationship_1 = listOmsUnstructuredDataRelationship;
        if ((listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship != null && listOmsUnstructuredDataRelationship.size() > 0)) {
            //if(2-7-03批量查询文档关系By归属内容表主键id.文档关系列表数据集条数 大于 0)  72055

            BatchQueryDocumentComRespDto batchQueryDocumentComRespDto = null;
            if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship.size() > 0) {
                BatchQueryDocumentComReqDto batchQueryDocumentComReqDto = new BatchQueryDocumentComReqDto();
                if (listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship) && listOmsUnstructuredDataRelationship != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship)) {
                    batchQueryDocumentComReqDto.setDocumentList(listOmsUnstructuredDataRelationship.stream().map(item -> item.getUnstructuredDataId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:1962847_1_72056
                }
                if (reqDto != null) {
                    batchQueryDocumentComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1962849_1_72056
                }

                /*D2-批量查询文档列表(公共)[2670]   */
                Assert.isNull(batchQueryDocumentComReqDto.getSpaceId(), "D2批量查询文档关系实例by归属内容表主键(公共)-D2-批量查询文档列表(公共)-创建于空间ID不能为空", false);
                batchQueryDocumentComRespDto = batchQueryDocumentCom(batchQueryDocumentComReqDto)/*vcase invoke 同服务,同domain*/;


                batchQueryDocumentComRespDto_1 = batchQueryDocumentComRespDto;
            }
        }
        BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto retData = new BatchQueryUnstructuredRelationshipInstanceByOwnEntityIdComRespDto();
        //数据集融合  MoreListToOneSource
        if (listOmsUnstructuredDataRelationship_1 != null && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1) && !CollectionUtil.isEmpty(listOmsUnstructuredDataRelationship_1)) {
            for (OmsUnstructuredDataRelationship omsUnstructuredDataRelationship : listOmsUnstructuredDataRelationship_1) {
                DocumentDto retElm = new DocumentDto();
                retElm.setUnstructuredDataRelationshipId(omsUnstructuredDataRelationship.getUnstructuredDataRelationshipId());//SimpleFieldAssign//sourceId:404167_2
                retElm.setOwnEntityId(omsUnstructuredDataRelationship.getOwnEntityId());//SimpleFieldAssign//sourceId:404168_2
                retElm.setOwnParentContentId(omsUnstructuredDataRelationship.getOwnParentContentId());//SimpleFieldAssign//sourceId:404169_2
                retElm.setThemeContentId(omsUnstructuredDataRelationship.getThemeContentId());//SimpleFieldAssign//sourceId:404170_2
                retElm.setUnstructuredDataAliasName(omsUnstructuredDataRelationship.getUnstructuredDataName());//SimpleFieldAssign//sourceId:412667_2
                retElm.setOrderNumber(omsUnstructuredDataRelationship.getOrderNumber());//SimpleFieldAssign//sourceId:404171_2
                retElm.setOperateTime(omsUnstructuredDataRelationship.getOperateTime());//SimpleFieldAssign//sourceId:404173_2
                retElm.setCreateInductionId(omsUnstructuredDataRelationship.getCreateInductionId());//SimpleFieldAssign//sourceId:404172_2
                retData.getDocumentList().add(retElm);
                if (batchQueryDocumentComRespDto_1 != null) {
                    for (DocumentDto documentDto : batchQueryDocumentComRespDto_1.getDocumentList()) {
                        if (documentDto.getUnstructuredDataId().equals(omsUnstructuredDataRelationship.getUnstructuredDataId())) {
                            if (batchQueryDocumentComRespDto_1 != null) {
                                retElm.setUnstructuredDataId(documentDto.getUnstructuredDataId());//SimpleFieldAssign//sourceId:404144_2
                                retElm.setUnstructuredDataType(documentDto.getUnstructuredDataType());//SimpleFieldAssign//sourceId:429738_2
                                retElm.setUnstructuredDataDetailType(documentDto.getUnstructuredDataDetailType());//SimpleFieldAssign//sourceId:404145_2
                                retElm.setUnstructuredDataDesc(documentDto.getUnstructuredDataDesc());//SimpleFieldAssign//sourceId:430111_2
                                retElm.setIsSupportPreview(documentDto.getIsSupportPreview());//SimpleFieldAssign//sourceId:404146_2
                                retElm.setIsUserUpload(documentDto.getIsUserUpload());//SimpleFieldAssign//sourceId:404147_2
                                retElm.setUnstructuredDataFolderId(documentDto.getUnstructuredDataFolderId());//SimpleFieldAssign//sourceId:404148_2
                                retElm.setFileRelativeAllPathAccess(documentDto.getFileRelativeAllPathAccess());//SimpleFieldAssign//sourceId:404149_2
                                retElm.setPostfix(documentDto.getPostfix());//SimpleFieldAssign//sourceId:404150_2
                                retElm.setFileSize(documentDto.getFileSize());//SimpleFieldAssign//sourceId:404151_2
                                retElm.setUnstructuredDataNumber(documentDto.getUnstructuredDataNumber());//SimpleFieldAssign//sourceId:404152_2
                                retElm.setUnstructuredDataName(documentDto.getUnstructuredDataName());//SimpleFieldAssign//sourceId:404153_2
                                retElm.setCreateTime(documentDto.getCreateTime());//SimpleFieldAssign//sourceId:405548_2
                            }
                        }
                    }
                }

            }
        }//sourceId:1963094_1


        return retData;
    }

    @Resource
    private MOmsUnstructuredDataService mOmsUnstructuredDataService;
    @Resource
    private MOmsUnstructuredDataFolderService mOmsUnstructuredDataFolderService;
    @Resource
    private NbUnstructuredData nbUnstructuredData;
    @Resource
    private ConfSchemeService confSchemeService;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private TemplateEngineService templateEngineService;
    //@Resource
    //private undefinedService undefinedService;
    @Resource
    private MOmsUnstructuredDataRelationshipService mOmsUnstructuredDataRelationshipService;
    @Resource
    private MCustomFields3Service mCustomFields3Service;
    //@Resource
    //private MMmmShellService mMmmShellService;
    @Resource
    private DivineDataService divineDataService;
//@Resource
    //private MCustomFields5Service mCustomFields5Service;


    //
}
